org.apache.wicket.markup.html.form.validation
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 by
getDependentFormComponents()
have been successfully validated before this
validator runs.
TODO post 1.3: remove validate(form) *make IFormValidator extends IValidator where IValidatable's
value is form.modelobject and error reports on form - that way IBehaviorProvider can extend
IValidator
- Author:
- Igor Vaynberg (ivaynberg)
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 by
getDependentFormComponents()
are valid.
- Parameters:
form
- form this validator is added to
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.