]> git.mxchange.org Git - jjobs-war.git/commitdiff
set user's initial locale from given one
authorRoland Häder <roland@mxchange.org>
Mon, 23 May 2016 07:48:59 +0000 (09:48 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 26 May 2016 15:28:00 +0000 (17:28 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java

index afeadabd85e20adde955e66bd8e7da9e88444084..ee602c262f63b03cdc1af8bac9a748cfb5a5b08b 100644 (file)
@@ -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());