wicket.markup.html.form.validation |
wicket.markup.html.form.validation package
Support for form validation. Form components can have validations assigned,
which are triggered before the models of the form components are updated.
If validation fails, the denied input is re-displayed by the components,
and the error messages are collected and available in FeedbackMessages.
|
Java Source File Name | Type | Comment |
AbstractFormValidator.java | Class | Base class for
wicket.markup.html.form.validation.IFormValidator s. |
AbstractValidator.java | Class | Base class for form component validators. |
CustomValidator.java | Class | A validator for strings designed for subclassing. |
DateValidator.java | Class | A validator for dates that can be used for subclassing
or use one of the static factory methods to get the default
date validators as range, maximum or minimum. |
EmailAddressPatternValidator.java | Class | Validator for checking the form/pattern of email addresses. |
EmailValidatorTest.java | Class | Tests a couple of valid and invalid email patterns. |
EqualInputValidator.java | Class | Validates that the input of two form components is identical. |
EqualPasswordInputValidator.java | Class | Validates that the input of two form components is identical. |
FormComponentFeedbackBorder.java | Class | A border that can be placed around a form component to indicate when the
bordered child/children has a validation error. |
FormComponentFeedbackIndicator.java | Class | A panel that hides or shows itself depending on whether there are feedback
messages for a given message filter. |
IFormValidator.java | Interface | Interface that represents validators that check multiple components. |
IntegerValidator.java | Class | Ensures that the form component has a numeric value in a given range. |
IValidator.java | Interface | Interface for validations by form components.
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 one of the Type validators like
StringValidator ,
NumberValidator or
DateValidator
Interface to code that validates Form components. |
LengthValidator.java | Class | Validates that a form component's string value is of a certain min/max
length. |
NumberValidator.java | Class | A validator for numbers. |
PatternValidator.java | Class | Validates component by matching the component's value against a regular
expression pattern. |
RequiredValidator.java | Class | This validator has been deprecated in favor of
FormComponent.setRequired(boolean) Validator that ensures a component has a non-null and non-empty value. |
StringValidator.java | Class | A validator for strings that can be used for subclassing or use one of the
static factory methods to get the default string validators as range, maximum
or minimum. |
TypeValidator.java | Class | This validator has been depreacted in favor of
FormComponent.setType(Class) Validates input by trying it to convert to the given type using the
wicket.util.convert.IConverter instance of the component doing the
validation.
This component adds ${type}, ${exception}, ${locale} and ${format} to the
model for error message interpolation. |
TypeValidatorTest.java | Class | Tests for checking typed validators. |