Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Annotations can be used as an alternative to XML for validation.

Examples

In all examples given here, the validation message displayed is given in plain English - to internationalize the message, use a property key from the resource bundle instead of the plain text. It will be looked up by the framework.

  1. Basic Validation
  2. Client Validation
  3. AJAX Validation
  4. Using Field Validators
  5. Using Non Field Validators
  6. Using Visitor Field Validator

...