From: Roland Häder Date: Mon, 23 May 2016 07:48:59 +0000 (+0200) Subject: set user's initial locale from given one X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c4d2ae3024b377d3b42c8fd043071a7abc801692;p=jjobs-war.git set user's initial locale from given one Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java index afeadabd..ee602c26 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java @@ -38,6 +38,7 @@ import org.mxchange.jcontacts.contact.ContactSessionBeanRemote; import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent; import org.mxchange.jjobs.beans.BaseJobsController; import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController; +import org.mxchange.jjobs.beans.localization.JobsLocalizationSessionController; import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController; import org.mxchange.jjobs.beans.register.JobsUserRegisterWebSessionController; import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent; @@ -81,6 +82,18 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs @Inject private JobsContactWebSessionController contactController; + /** + * Localization controller + */ + @Inject + private JobsLocalizationSessionController localizationController; + + /** + * Login bean (controller) + */ + @Inject + private JobsUserLoginWebSessionController loginController; + /** * Registration controller */ @@ -436,7 +449,8 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs this.setUserPasswordRepeat(randomPassword); } - // Set user name and mode + // Set local, user name and mode + user.setUserLocale(this.localizationController.getLocale()); user.setUserName(this.getUserName()); user.setUserProfileMode(this.getUserProfileMode());