Package org.omnifaces.validator
Interface MultiFieldValidator
-
- All Known Implementing Classes:
ValidateAll
,ValidateAllOrNone
,ValidateEqual
,ValidateMultiple
,ValidateMultipleFields
,ValidateOne
,ValidateOneOrMore
,ValidateOneOrNone
,ValidateOrder
,ValidateUnique
public interface MultiFieldValidator
Generic interface for multi field validator.- Since:
- 1.7
- Author:
- Bauke Scholtz
- See Also:
ValidateMultipleFields
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
validateValues(FacesContext context, List<UIInput> components, List<Object> values)
Perform the validation on the collected values of the input components and returns whether the validation is successful.
-
-
-
Method Detail
-
validateValues
boolean validateValues(FacesContext context, List<UIInput> components, List<Object> values)
Perform the validation on the collected values of the input components and returns whether the validation is successful. Note: this validator does NOT throwValidatorException
! This job is up to theValidateMultipleFields
implementation who will call this method.- Parameters:
context
- The faces context to work with.components
- The input components whose values are to be validated.values
- The values of the input components to be validated, in the same order as the components.- Returns:
true
if validation is successful, otherwisefalse
(and thus show the message).
-
-