Differences between revisions 6 and 7
Revision 6 as of 2009-07-30 19:53:27
Size: 2040
Comment:
Revision 7 as of 2009-09-20 23:00:58
Size: 2048
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
|| JoinValidation || to reuse (point to) annotations of a different property (see [http://os890.blogspot.com/2008/04/sev-en-preview-re-use-existing_07.html re-use existing annotations]) || || JoinValidation || to reuse (point to) annotations of a different property (see [[http://os890.blogspot.com/2008/04/sev-en-preview-re-use-existing_07.html|re-use existing annotations]]) ||
Line 25: Line 25:
For more details please have a look e.g. at the [http://wiki.apache.org/myfaces/Extensions/Validator blog and article-section]. For more details please have a look e.g. at the [[http://wiki.apache.org/myfaces/Extensions/Validator|blog and article-section]].
Line 28: Line 28:
'''Coming soon - depends on the final release of Hibernate Validator v4 - the RI of BV'''[[BR]] '''Coming soon - depends on the final release of Hibernate Validator v4 - the RI of BV'''<<BR>>
Line 34: Line 34:
 * Dynamic Property Validation (hosted at [http://code.google.com/p/os890/ os890])[[BR]]
   You can observe the progress [http://code.google.com/p/os890/source/browse/branches/java/web/jsf/extval/validation_modules/dynamic_property_validation/ here]
 * Dynamic Property Validation (hosted at [[http://code.google.com/p/os890/|os890]])<<BR>>
   You can observe the progress [[http://code.google.com/p/os890/source/browse/branches/java/web/jsf/extval/validation_modules/dynamic_property_validation/|here]]

Available Annotations

ExtVal Annotations

Simple

DoubleRange

delegates to the implementation of javax.faces.validator.DoubleRangeValidator

JoinValidation

to reuse (point to) annotations of a different property (see re-use existing annotations)

Length

delegates to the implementation of javax.faces.validator.LengthValidator

LongRange

delegates to the implementation of javax.faces.validator.LongRangeValidator

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.: @Validator(EmailValidator.class)

Cross-Validation

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)

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

In progress

  • Dynamic Property Validation (hosted at os890)

    • You can observe the progress here

Extensions/Validator/Available_Annotations (last edited 2009-09-20 23:00:58 by localhost)