Available Annotations
ExtVal Annotations
Simple |
|
delegates to the implementation of javax.faces.validator.DoubleRangeValidator |
|
to reuse (point to) annotations of a different property (see re-use existing annotations) |
|
Length |
delegates to the implementation of javax.faces.validator.LengthValidator |
delegates to the implementation of javax.faces.validator.LongRangeValidator |
|
Pattern |
use a regular expression for validation |
Required |
alternative to the required attribute |
allows to keep validation optional. (the annotations which are afterwards and support this mechanism) |
|
Validator |
generic validator to delegate validation to an existing jsf validator e.g.: @Validator(EmailValidator.class) |
Cross-Validation |
|
validates if a date is equal, before or after a second date |
|
Equals |
validates if two values are equal |
validates if two values are different |
|
validates if a value is required depending on a second value (if it is empty or not) |
Supported 3rd Party Annotations |
JPA 1.0 Annotations |
Custom Annotations! |
For more details please have a look e.g. at the blog and article-section.
JSR 303 Constraints
Coming soon - depends on the final release of Hibernate Validator v4 - the RI of BV
It's possible via an integration module for JSR 303 - before the third release of ExtVal it's available in the svn for early adaptors.
External Validation Modules