Overview
Other MyFaces Extensions
- CODI
- Ext-Script
- [Orchestra]
- [Portlet Bridge]
The Intro page provides an overview and describes the motivation for the features described below. This page explains the most important APIs and mechanisms of the property validation module provided by ExtVal. Please note that this page doesn't show all possibilities. If you have any question, please contact the community!
The page ExtVal Modules provides an overview about ExtVal modules and how to add them to your project.
For using the features described in this page, you have to add the core and the property validation module for the JSF version you are using.
Required steps for using ExtVal:
That's it!
Annotation |
Description |
---|---|
DoubleRange |
delegates to the implementation of |
JoinValidation |
to reuse (point to) annotations of a different property (see re-use existing annotations) |
Length |
delegates to the implementation of |
LongRange |
delegates to the implementation of |
Pattern |
use a regular expression for validation |
Required |
alternative to the required attribute |
SkipValidation |
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.: |
That's it!
(A simple demo is available here: demo_000)
Cross-Validation
Annotation |
Description |
---|---|
DateIs |
validates if a date is equal, before or after a second date |
Equals |
validates if two values are equal |
NotEquals |
validates if two values are different |
RequiredIf |
validates if a value is required depending on a second value (if it is empty or not) |
Since ExtVal doesn't introduce specific rules for annotations, it's possible to integrate any existing annotation.