]> git.mxchange.org Git - addressbook-war.git/commitdiff
Continued a bit:
authorRoland Haeder <roland@mxchange.org>
Tue, 8 Mar 2016 21:06:59 +0000 (22:06 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 8 Mar 2016 21:06:59 +0000 (22:06 +0100)
- renamed method
- the password validator is currently not working as it currently need the web controller, not the EJB
- updated jar(s)

lib/jcontacts-business-core.jar
lib/jcontacts-core.jar
lib/jphone-core.jar
src/java/org/mxchange/addressbook/beans/user/UserWebSessionBean.java
src/java/org/mxchange/addressbook/converter/country/CountryConverter.java
web/WEB-INF/templates/login/login_enter_current_password.tpl

index 38f7bec9b70f927a6c77d80bf420e15e01e2b9eb..fcaadf8ccb43000591b17665bdb1e7b4d4824515 100644 (file)
Binary files a/lib/jcontacts-business-core.jar and b/lib/jcontacts-business-core.jar differ
index a9baa32fa6cfb062f87ed9a9ccba1ebe106e8244..e905316a232cc3f743e47c1d041b3c782fa666f1 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index 4a792881003d7be6485b4aba1e0a4aa6cf1d4c0e..221f558c88c722e38e98a8f00c55f365f4cf1498 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index 9480a5bf53fdb330861f226a0ae36228160bc860..e11c65f27e0eacb3725910dc7fa503247d02c778 100644 (file)
@@ -378,7 +378,7 @@ public class UserWebSessionBean implements UserWebSessionController {
                        }
 
                        // Set phone number
-                       contact.setContactPhoneNumber(phone);
+                       contact.setContactLandLineNumber(phone);
                }
 
                // Don't set null or wrong references
@@ -888,7 +888,7 @@ public class UserWebSessionBean implements UserWebSessionController {
                // Get cellphone, phone and fax instance
                DialableCellphoneNumber cellphone = user.getUserContact().getContactCellphoneNumber();
                DialableFaxNumber fax = user.getUserContact().getContactFaxNumber();
-               DialableLandLineNumber phone = user.getUserContact().getContactPhoneNumber();
+               DialableLandLineNumber phone = user.getUserContact().getContactLandLineNumber();
 
                // - contact data
                if ((phone instanceof DialableLandLineNumber) && (phone.getPhoneAreaCode() > 0)) {
index 108c9551607e2774e63a89735e1d64ad9c67d020..1a810c9c3ce16acbe16f05447f5a9a04d4032047 100644 (file)
@@ -42,7 +42,7 @@ public class CountryConverter implements Converter {
        /**
         * Country bean
         */
-       private AddressbookCountrySingletonBeanRemote countryController;
+       private AddressbookCountrySingletonBeanRemote countryBean;
 
        /**
         * Logger instance
@@ -62,8 +62,8 @@ public class CountryConverter implements Converter {
                        // Lookup logger
                        this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
 
-                       // ... and country controller
-                       this.countryController = (AddressbookCountrySingletonBeanRemote) context.lookup("java:global/addressbook-ejb/country!org.mxchange.jcountry.data.AddressbookCountrySingletonBeanRemote"); //NOI18N
+                       // ... and country bean
+                       this.countryBean = (AddressbookCountrySingletonBeanRemote) context.lookup("java:global/addressbook-ejb/country!org.mxchange.jcountry.data.AddressbookCountrySingletonBeanRemote"); //NOI18N
                } catch (final NamingException ex) {
                        // Continue to throw it
                        throw new RuntimeException("context.lookup() failed.", ex); //NOI18N
@@ -73,7 +73,7 @@ public class CountryConverter implements Converter {
        @Override
        public Object getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
                // Trace message
-               this.loggerBeanLocal.logTrace(MessageFormat.format("getAsObject: context={0},component={1},submittedValue={2},this.countryController={3} - CALLED!", context, component, submittedValue, this.countryController)); //NOI18N
+               this.loggerBeanLocal.logTrace(MessageFormat.format("getAsObject: context={0},component={1},submittedValue={2},this.countryBean={3} - CALLED!", context, component, submittedValue, this.countryBean)); //NOI18N
 
                // Is the value null or empty?
                if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
@@ -85,7 +85,7 @@ public class CountryConverter implements Converter {
                }
 
                // Get full list
-               List<Country> countryList = this.countryController.allCountries();
+               List<Country> countryList = this.countryBean.allCountries();
 
                // Init value
                Country country = null;
index 26206e4c05a9c65940c7b9d8387745a394d9fb1f..eb11c933b1e61474774fda73d576f74b8a850c91 100644 (file)
@@ -16,7 +16,7 @@
                                <div class="table_right">
                                        <h:inputSecret class="input" id="currentPassword" size="10" maxlength="255" value="#{loginController.currentPassword}" required="true" validatorMessage="#{msg.ERROR_CURRENT_PASSWORD_MISMATCHING}">
                                                <h:message for="currentPassword" class="errors" />
-                                               <f:validator for="currentPassword" validatorId="UserPasswordValidator" />
+                                               <!-- <f:validator for="currentPassword" validatorId="UserPasswordValidator" /> //-->
                                        </h:inputSecret>
                                </div>