*/
private String countryCode;
- /**
- * Remote user bean
- */
- private final UserSessionBeanRemote userBean;
-
/**
* Email address
*/
*/
private String street;
+ /**
+ * Remote user bean
+ */
+ private final UserSessionBeanRemote userBean;
+
+ /**
+ * User name
+ */
+ private String userName;
+
/**
* ZIP code
*/
// 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());
contact.setPhoneNumber(this.getPhoneNumber());
contact.setFaxNumber(this.getFaxNumber());
contact.setCellphoneNumber(this.getCellphoneNumber());
+ contact.setComment(this.getComment());
// Set contact in user
user.setContact(contact);
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;
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;
*/
public void setCity (final String city);
+ /**
+ * Getter for comments
+ * <p>
+ * @return Comments
+ */
+ public String getComment ();
+
+ /**
+ * Setter for comment
+ * <p>
+ * @param comment Comments
+ */
+ public void setComment (final String comment);
+
+ /**
+ * Getter for user name
+ * <p>
+ * @return User name
+ */
+ public String getUserName ();
+
+ /**
+ * Setter for user name
+ * <p>
+ * @param userName User name
+ */
+ public void setUserName (final String userName);
+
/**
* Company name
* <p>
<fieldset id="login_data">
<legend title="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND_TITLE}">#{msg.GUEST_REGISTRATION_EMAIL_LEGEND}</legend>
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="userName" value="#{msg.GUEST_REGISTRATION_ENTER_USER_NAME}" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="userName" size="20" maxlength="255" value="#{userController.userName}" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
<div class="table_row">
<div class="table_left">
<h:outputLabel for="emailAddress1" value="#{msg.GUEST_REGISTRATION_ENTER_EMAIL1}" />