|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
THIS INTERFACE IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT.
Instead of subclassing IValidator, you should use one of the existing validators, which cover a huge number of cases, or if none satisfies your need, subclass CustomValidator.
Interface to code that validates Form components. When the validate() method of the interface is called by the framework, the IValidator implementation is expected to check the input String it is passed.
| Nested Class Summary | |
static class |
IValidator.NullValidator
Validator that does nothing. |
| Field Summary | |
static IValidator |
NULL
An implementation of IValidator that does nothing at all. |
| Method Summary | |
void |
validate(FormComponent component)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
| Field Detail |
public static final IValidator NULL
| Method Detail |
public void validate(FormComponent component)
Instead of subclassing IValidator, you should use one of the existing validators, which cover a huge number of cases, or if none satisfies your need, subclass CustomValidator.
Validates the given input. The input corresponds to the input from the request for a component. Any implementation of this method should be synchronized because validators are intended to be shared across sessions/threads.
component - Component to validate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||