Forums de discussion
Changing the email address using PortletFacesUtil
Christopher Olbertz, modifié il y a 14 années.
Changing the email address using PortletFacesUtil
Regular Member Publications: 107 Date d'inscription: 21/11/07 Publications récentes
I want to use the user's email address by using PortletFacesUtil. At the moment, I am using the set()-method, but the value in the database is not changed. What else have I to do?
Here is my code:
Kind regards,
Christopher
Here is my code:
getPortletFacesUtil().getUser().setEmailAddress(email);
Kind regards,
Christopher
Natalie Smith, modifié il y a 10 années.
RE: Changing the email address using PortletFacesUtil
New Member Envoyer: 1 Date d'inscription: 15/02/14 Publications récentes
I look forward to an answer to this.
Neil Griffin, modifié il y a 10 années.
RE: Changing the email address using PortletFacesUtil
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
PortletFacesUtil is the predecessor of what is now called LiferayFacesContext, which is part of the Liferay Faces Portal project.
In order to change the email address in the database, you can do something like this:
In order to change the email address in the database, you can do something like this:
LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
User user = liferayFacesContext.getUser();
user.setEmailAddress("foo@bar.com");
UserLocalServiceUtil.updateUser(user);