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=5d788295adb916677537a078de8b3c0983d0a586;p=jfinancials-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/jfinancials/validator/emailaddress/FinancialsEmailAddressValidator.java b/src/java/org/mxchange/jfinancials/validator/emailaddress/FinancialsEmailAddressValidator.java index 92ff97c6..e65c4516 100644 --- a/src/java/org/mxchange/jfinancials/validator/emailaddress/FinancialsEmailAddressValidator.java +++ b/src/java/org/mxchange/jfinancials/validator/emailaddress/FinancialsEmailAddressValidator.java @@ -65,6 +65,7 @@ public class FinancialsEmailAddressValidator 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 FinancialsEmailAddressValidator 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 FinancialsEmailAddressValidator 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 b2bab34b..de8248d5 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 @@
- - - + + +