Interface IFormValidator
-
- All Superinterfaces:
IClusterable
,Serializable
- All Known Implementing Classes:
AbstractFormValidator
,EqualInputValidator
,EqualPasswordInputValidator
,FormValidatorAdapter
public interface IFormValidator extends IClusterable
Interface that represents validators that check multiple components. These validators are added to the form and only executed if all form components returned bygetDependentFormComponents()
have been successfully validated before this validator runs.- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
AbstractFormValidator
,IValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FormComponent<?>[]
getDependentFormComponents()
void
validate(Form<?> form)
This method is ran if all components returned bygetDependentFormComponents()
are valid.
-
-
-
Method Detail
-
getDependentFormComponents
FormComponent<?>[] getDependentFormComponents()
- Returns:
- array of
FormComponent
s that this validator depends on
-
validate
void validate(Form<?> form)
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
-
-