From: Roland Haeder Date: Tue, 6 Oct 2015 06:29:36 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82ac6611c2e1afa4af78ea58b8d5c694f6bb3a92;p=addressbook-war.git Continued: - added missing properties userName and comments (getter/setter) - added user name to registration form - updated jar Signed-off-by:Roland Häder --- diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 9f4d2801..a5c15c7f 100644 Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ diff --git a/src/java/org/mxchange/addressbook/beans/user/UserWebBean.java b/src/java/org/mxchange/addressbook/beans/user/UserWebBean.java index aa652c8f..36affa12 100644 --- a/src/java/org/mxchange/addressbook/beans/user/UserWebBean.java +++ b/src/java/org/mxchange/addressbook/beans/user/UserWebBean.java @@ -69,11 +69,6 @@ public class UserWebBean implements UserWebController { */ private String countryCode; - /** - * Remote user bean - */ - private final UserSessionBeanRemote userBean; - /** * Email address */ @@ -114,6 +109,16 @@ public class UserWebBean implements UserWebController { */ private String street; + /** + * Remote user bean + */ + private final UserSessionBeanRemote userBean; + + /** + * User name + */ + private String userName; + /** * ZIP code */ @@ -149,6 +154,7 @@ public class UserWebBean implements UserWebController { // Create new user instance User user = new LoginUser(); + user.setUserName(this.getUserName()); // Create new contact Contact contact = new UserContact(this.getGender(), this.getFirstName(), this.getFamilyName(), this.getCompanyName()); @@ -159,6 +165,7 @@ public class UserWebBean implements UserWebController { contact.setPhoneNumber(this.getPhoneNumber()); contact.setFaxNumber(this.getFaxNumber()); contact.setCellphoneNumber(this.getCellphoneNumber()); + contact.setComment(this.getComment()); // Set contact in user user.setContact(contact); @@ -189,6 +196,16 @@ public class UserWebBean implements UserWebController { this.city = city; } + @Override + public String getComment () { + return this.comment; + } + + @Override + public void setComment (final String comment) { + this.comment = comment; + } + @Override public String getCompanyName () { return this.companyName; @@ -289,6 +306,16 @@ public class UserWebBean implements UserWebController { this.street = street; } + @Override + public String getUserName () { + return this.userName; + } + + @Override + public void setUserName (final String userName) { + this.userName = userName; + } + @Override public Integer getZipCode () { return this.zipCode; diff --git a/src/java/org/mxchange/addressbook/beans/user/UserWebController.java b/src/java/org/mxchange/addressbook/beans/user/UserWebController.java index 0dcf0429..085c0e64 100644 --- a/src/java/org/mxchange/addressbook/beans/user/UserWebController.java +++ b/src/java/org/mxchange/addressbook/beans/user/UserWebController.java @@ -62,6 +62,34 @@ public interface UserWebController extends Serializable { */ public void setCity (final String city); + /** + * Getter for comments + *

+ * @return Comments + */ + public String getComment (); + + /** + * Setter for comment + *

+ * @param comment Comments + */ + public void setComment (final String comment); + + /** + * Getter for user name + *

+ * @return User name + */ + public String getUserName (); + + /** + * Setter for user name + *

+ * @param userName User name + */ + public void setUserName (final String userName); + /** * Company name *

diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 69d1da9b..f1df412f 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -107,3 +107,4 @@ MENU_USER_TITLE=Benutzer ENTER_USER_NAME=Benutzernamen: BUTTON_USER_LOGIN=Einloggen BUTTON_CONTINUE_STEP_2=Weiter zu Schritt 2 +GUEST_REGISTRATION_ENTER_USER_NAME=Benutzernamen eingeben: diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 2d4e31f4..53fbc1d2 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -107,3 +107,4 @@ MENU_USER_TITLE=User ENTER_USER_NAME=User name: BUTTON_USER_LOGIN=Login BUTTON_CONTINUE_STEP_2=Weiter zu Schritt 2 +GUEST_REGISTRATION_ENTER_USER_NAME=Enter user name: diff --git a/web/WEB-INF/templates/guest/guest_registration_form.tpl b/web/WEB-INF/templates/guest/guest_registration_form.tpl index 4b6f9e3d..67513825 100644 --- a/web/WEB-INF/templates/guest/guest_registration_form.tpl +++ b/web/WEB-INF/templates/guest/guest_registration_form.tpl @@ -18,6 +18,18 @@

#{msg.GUEST_REGISTRATION_EMAIL_LEGEND} +
+
+ +
+ +
+ +
+ +
+
+