From: Roland Häder Date: Fri, 1 Sep 2017 22:06:40 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bee881b127c0e0947aab89f8897b63e4f603b551;p=pizzaservice-war.git Please cherry-pick: - added wrong navigation rules, ops - added noisy debug lines, somehow f:attribute is not ending up in validator - removed rendered attribute from same JSF tag Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/validator/emailaddress/PizzaEmailAddressValidator.java b/src/java/org/mxchange/pizzaapplication/validator/emailaddress/PizzaEmailAddressValidator.java index 41c284b0..a6edb351 100644 --- a/src/java/org/mxchange/pizzaapplication/validator/emailaddress/PizzaEmailAddressValidator.java +++ b/src/java/org/mxchange/pizzaapplication/validator/emailaddress/PizzaEmailAddressValidator.java @@ -65,6 +65,7 @@ public class PizzaEmailAddressValidator extends BaseStringValidator { @Override public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException { + System.out.println(this.getClass().getSimpleName() + ".validate(): component.clientId=" + component.getClientId()); // The required field String[] requiredFields = {"emailAddress", "emailAddressRepeat", "resendEmailAddress"}; //NOI18N @@ -75,6 +76,7 @@ public class PizzaEmailAddressValidator extends BaseStringValidator { if (component.getAttributes().containsKey("allowEmptyValue")) { //NOI18N // Get attribute Object attribute = component.getAttributes().get("allowEmptyValue"); //NOI18N + System.out.println(this.getClass().getSimpleName() + ".validate():attribute=" + attribute); // Make sure, it is Boolean as no String is accepted anymore if (!(attribute instanceof String)) { @@ -85,6 +87,7 @@ public class PizzaEmailAddressValidator extends BaseStringValidator { // Securely cast it allowEmptyValue = Boolean.parseBoolean((String) attribute); } + System.out.println(this.getClass().getSimpleName() + ".validate(): allowEmptyValue=" + allowEmptyValue); // Pre-validation (example: not null, not a string, empty string ...) super.preValidate(context, component, value, requiredFields, allowEmptyValue); diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index a6a7f3f5..de07c814 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -170,14 +170,6 @@ /guest/user/user_resend_link.xhtml - - user_login - /login/login_index.xhtml - - - login_edit_user_data - /user/login_edit_user_data.xhtml - user_profile /guest/user/user_profile.xhtml diff --git a/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl b/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl index 3ec8a69c..69267472 100644 --- a/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl +++ b/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl @@ -200,9 +200,9 @@
- - - + + +