From 27084cca343ee8463194b59de5b864858b0fa629 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 7 May 2016 16:34:24 +0200 Subject: [PATCH] these are noisy debug lines ... --- src/org/mxchange/jcoreee/validator/BaseObjectValidator.java | 4 ++-- .../mxchange/jcoreee/validator/bool/BaseBooleanValidator.java | 2 +- .../bool/privacy_terms/PrivacyTermsCheckboxValidator.java | 4 ++-- .../mxchange/jcoreee/validator/number/BaseLongValidator.java | 2 +- .../validator/number/item_amount/ItemAmountValidator.java | 4 ++-- .../jcoreee/validator/string/BaseStringValidator.java | 4 ++-- .../jcoreee/validator/string/names/NameValidator.java | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java index e35b97e..3bf63fe 100644 --- a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java +++ b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java @@ -67,7 +67,7 @@ public abstract class BaseObjectValidator implements Validator, Serializable { */ protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields, boolean allowNull) throws ValidatorException { // Trace message - //this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N + //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N // Init message and key FacesMessage facesMessage = null; @@ -117,7 +117,7 @@ public abstract class BaseObjectValidator implements Validator, Serializable { } // Trace message - //this.getLogger().logTrace("preValidate: EXIT!"); //NOI18N + //* NOISY-DEBUG: */ System.out.println("preValidate: EXIT!"); //NOI18N } } diff --git a/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java b/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java index 8b80973..cdb26d9 100644 --- a/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java +++ b/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java @@ -42,7 +42,7 @@ public abstract class BaseBooleanValidator extends BaseObjectValidator implement @Override public void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields, boolean allowNull) throws ValidatorException { // Trace message - //this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N + //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N // Pre-validate super.preValidate(context, component, value, requiredFields, allowNull); diff --git a/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java b/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java index e821250..f59654e 100644 --- a/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java +++ b/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java @@ -39,7 +39,7 @@ public class PrivacyTermsCheckboxValidator extends BaseBooleanValidator implemen @Override public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException { // Trace message - //this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N + //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N // All accepted, required fields String[] requiredFields = {"privacy", "terms"}; //NOI18N @@ -48,6 +48,6 @@ public class PrivacyTermsCheckboxValidator extends BaseBooleanValidator implemen super.preValidate(context, component, value, requiredFields, false); // Trace message - //this.getLogger().logTrace("validate: EXIT!"); //NOI18N + //* NOISY-DEBUG: */ System.out.println("validate: EXIT!"); //NOI18N } } diff --git a/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java b/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java index 2a5ddff..60676a6 100644 --- a/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java +++ b/src/org/mxchange/jcoreee/validator/number/BaseLongValidator.java @@ -39,7 +39,7 @@ public abstract class BaseLongValidator extends BaseObjectValidator implements V @Override public void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields, boolean allowNull) throws ValidatorException { // Trace message - //this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3},allowNull={4} - CALLED!", context, component, value, Arrays.toString(requiredFields, allowNull))); //NOI18N + //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3},allowNull={4} - CALLED!", context, component, value, Arrays.toString(requiredFields, allowNull))); //NOI18N // Pre-validate super.preValidate(context, component, value, requiredFields, allowNull); diff --git a/src/org/mxchange/jcoreee/validator/number/item_amount/ItemAmountValidator.java b/src/org/mxchange/jcoreee/validator/number/item_amount/ItemAmountValidator.java index 204a70f..338a38c 100644 --- a/src/org/mxchange/jcoreee/validator/number/item_amount/ItemAmountValidator.java +++ b/src/org/mxchange/jcoreee/validator/number/item_amount/ItemAmountValidator.java @@ -39,7 +39,7 @@ public class ItemAmountValidator extends BaseLongValidator implements Validator @Override public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException { // Trace message - //this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N + //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N // The required field String[] requiredFields = {"amount"}; //NOI18N @@ -48,6 +48,6 @@ public class ItemAmountValidator extends BaseLongValidator implements Validator super.preValidate(context, component, value, requiredFields, false); // Trace message - //this.getLogger().logTrace("validate: EXIT!"); //NOI18N + //* NOISY-DEBUG: */ System.out.println("validate: EXIT!"); //NOI18N } } diff --git a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java index 708a031..9948a57 100644 --- a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java +++ b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java @@ -39,7 +39,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { @Override protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields, boolean allowNull) throws ValidatorException { // Trace message - //this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},fields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N + //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("preValidate: context={0},component={1},value={2},fields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N // Pre-validate (example: on null) super.preValidate(context, component, value, requiredFields, allowNull); @@ -80,6 +80,6 @@ public abstract class BaseStringValidator extends BaseObjectValidator { } // Trace message - //this.getLogger().logTrace("preValidate: EXIT!"); //NOI18N + //* NOISY-DEBUG: */ System.out.println("preValidate: EXIT!"); //NOI18N } } diff --git a/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java b/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java index c12bef1..02cbfe0 100644 --- a/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java +++ b/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java @@ -39,7 +39,7 @@ public class NameValidator extends BaseStringValidator implements Validator { @Override public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException { // Trace message - //this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N + //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N // All accepted, required fields String[] requiredFields = {"firstName", "familyName", "city", "street"}; //NOI18N @@ -48,6 +48,6 @@ public class NameValidator extends BaseStringValidator implements Validator { super.preValidate(context, component, value, requiredFields, true); // Trace message - //this.getLogger().logTrace("validate: EXIT!"); //NOI18N + //* NOISY-DEBUG: */ System.out.println("validate: EXIT!"); //NOI18N } } -- 2.39.5