]> git.mxchange.org Git - jfinancials-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>
Wed, 25 May 2016 18:23:31 +0000 (20:23 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/addressbook/beans/user/AddressbookUserWebSessionBean.java

index 0a1a39ccf2ce9776cd1e233f41fef9a449cdc349..d583d8476ec5cd9092e0088be74bf364307fb6be 100644 (file)
@@ -35,6 +35,7 @@ import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.addressbook.beans.BaseAddressbookController;
 import org.mxchange.addressbook.beans.contact.AddressbookContactWebSessionController;
+import org.mxchange.addressbook.beans.localization.AddressbookLocalizationSessionController;
 import org.mxchange.addressbook.beans.login.AddressbookUserLoginWebSessionController;
 import org.mxchange.addressbook.beans.register.AddressbookUserRegisterWebSessionController;
 import org.mxchange.jcontacts.contact.Contact;
@@ -81,6 +82,12 @@ public class AddressbookUserWebSessionBean extends BaseAddressbookController imp
        @Inject
        private AddressbookContactWebSessionController contactController;
 
+       /**
+        * Localization controller
+        */
+       @Inject
+       private AddressbookLocalizationSessionController localizationController;
+
        /**
         * Login bean (controller)
         */
@@ -441,7 +448,8 @@ public class AddressbookUserWebSessionBean extends BaseAddressbookController imp
                        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());