]> git.mxchange.org Git - jcore-utils.git/blobdiff - src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java
Added flag allowNull to allow null ...
[jcore-utils.git] / src / org / mxchange / jcoreee / validator / string / BaseStringValidator.java
index 0326176080cbbc3d099b4b3f53373eceac4cf0e4..159fc500618a3d5e1aac1af9b9e77064d5c605b1 100644 (file)
@@ -37,12 +37,12 @@ public abstract class BaseStringValidator extends BaseObjectValidator {
        private static final long serialVersionUID = 15_484_578_781_760_287L;
 
        @Override
-       protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException {
+       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
 
                // Pre-validate (example: on null)
-               super.preValidate(context, component, value, requiredFields);
+               super.preValidate(context, component, value, requiredFields, allowNull);
 
                // Get client id and init message + key
                String clientId = component.getClientId();