public interface IFormValidator extends IClusterable
getDependentFormComponents() have been successfully validated before this
validator runs.AbstractFormValidator,
IValidator| Modifier and Type | Method and Description |
|---|---|
FormComponent<?>[] |
getDependentFormComponents() |
void |
validate(Form<?> form)
This method is ran if all components returned by
getDependentFormComponents() are valid. |
FormComponent<?>[] getDependentFormComponents()
FormComponents that this validator depends onvoid validate(Form<?> form)
getDependentFormComponents() 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 its
AbstractFormValidator.error(FormComponent, String, java.util.Map) method.
form - form this validator is added toCopyright © 2006–2014 Apache Software Foundation. All rights reserved.