From: Roland Häder Date: Thu, 1 Sep 2016 15:48:25 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bf0eef674d589d1f93e20729ac0b8fe0657ef1d0;p=jjobs-war.git Please cherry-pick: - moved error messages outside table_row container - added error message for email address in admin contact data form - replaced FacetException with a nice JSF message --- diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java index d78d7062..5da800a5 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java @@ -279,7 +279,8 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J throw new FaceletException(new UserNameAlreadyRegisteredException(user)); } else if ((this.beanHelper.getContact() == null) && (this.contactController.isEmailAddressRegistered(user.getUserContact()))) { // Email address is already used - throw new FaceletException(new EmailAddressAlreadyRegisteredException(user)); + this.showFacesMessage("admin_add_user:emailAddress", "ERROR_EMAIL_ADDRESS_ALREADY_USED"); //NOI18N + return ""; //NOI18N } else if ((this.getUserPassword() == null && (this.getUserPasswordRepeat() == null)) || ((this.getUserPassword().isEmpty()) && (this.getUserPasswordRepeat().isEmpty()))) { // Empty password entered, then generate one password = UserUtils.createRandomPassword(JobsUserWebSessionController.MINIMUM_PASSWORD_LENGTH); diff --git a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl b/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl index 8e8f5431..f3b5f3b4 100644 --- a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl +++ b/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl @@ -23,12 +23,12 @@
- - - - + + + +
@@ -39,12 +39,12 @@
- - - -
+ + + +
@@ -55,12 +55,12 @@
- - - -
+ + + +
@@ -71,12 +71,12 @@
- - - -
+ + + +
@@ -87,12 +87,12 @@
- - - -
+ + + +
@@ -105,12 +105,12 @@
- - - -
+ + + +
@@ -121,12 +121,12 @@
- - - -
+ + + +
@@ -139,12 +139,12 @@
- - - -
+ + + +
@@ -155,12 +155,12 @@
- - - -
+ + + +
@@ -174,12 +174,12 @@
- - - -
+ + + +
@@ -239,15 +239,15 @@ - - - -
+ + + +
@@ -260,6 +260,10 @@
+ + + +
@@ -272,12 +276,12 @@
- - - -
+ + + +