*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* You also may want to try out some other BaseFooValidator classes before
* directly inheriting from this class.
* <p>
* You also may want to try out some other BaseFooValidator classes before
* directly inheriting from this class.
* <p>
- /**
- * Needs to be implemented as the Validator interface needs to be
- * implemented.
- * <p>
- * @param context
- * @param component
- * @param value <p>
- * @throws ValidatorException
- */
- @Override
- abstract public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException;
-
/**
* The method pre-validates the given value. It makes sure that the
* component's id is found in requiredFields and is not null. Once the
* component's id has been found, it stops iteration on requiredFields
* (which saves execution time).
* <p>
/**
* The method pre-validates the given value. It makes sure that the
* component's id is found in requiredFields and is not null. Once the
* component's id has been found, it stops iteration on requiredFields
* (which saves execution time).
* <p>
- * @param context FacesContext instance
- * @param component UIComponent instance
- * @param value Value to check
+ * @param context FacesContext instance
+ * @param component UIComponent instance
+ * @param value Value to check
- protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields, boolean allowNull) throws ValidatorException {
+ protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields, Boolean allowNull) throws ValidatorException {
// Trace message
//* NOISY-DEBUG: */ System.out.println(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N
// Trace message
//* NOISY-DEBUG: */ System.out.println(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N