Module org.apache.wicket.core
Interface IFormValidator
- All Superinterfaces:
IClusterable
,Serializable
- All Known Implementing Classes:
AbstractFormValidator
,EqualInputValidator
,EqualPasswordInputValidator
,FormValidatorAdapter
Interface that represents validators that check multiple components. These validators are added
to the form and only executed if all form components returned by
getDependentFormComponents()
have been successfully validated before this
validator runs.- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionFormComponent<?>[]
void
This method is ran if all components returned bygetDependentFormComponents()
are valid.
-
Method Details
-
getDependentFormComponents
- Returns:
- array of
FormComponent
s that this validator depends on
-
validate
This method is ran if all components returned bygetDependentFormComponents()
are valid.To report validation error use
FormComponent.error(org.apache.wicket.validation.IValidationError)
by using any of the dependent form components or extend from AbstractFormValidator and use itsAbstractFormValidator.error(FormComponent, String, java.util.Map)
method.- Parameters:
form
- form this validator is added to
-