org.apache.wicket.markup.html.form.validation
Interface IFormValidator

All Superinterfaces:
IClusterable, java.io.Serializable
All Known Implementing Classes:
AbstractFormValidator, EqualInputValidator, EqualPasswordInputValidator

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)

Method Summary
 FormComponent[] getDependentFormComponents()
           
 void validate(Form form)
          This method is ran if all components returned by getDependentFormComponents() are valid.
 

Method Detail

getDependentFormComponents

FormComponent[] getDependentFormComponents()
Returns:
array of FormComponents 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 © 2004-2010 Apache Software Foundation. All Rights Reserved.