Found this while I'm cracking my head on how to do a proper validation.
Given the different kinds of validation on offer, one might ask how they are applied, and what happens when errors are produced at any stage. The following is the general flow:
- Required field validation is run first
- Perform minimum/maximum length and mask validations
- If the field still has no errors, convert to the target type and bind the property to the ActionBean
- If the field converted without errors, run any min/max value checks (for numbers)
- For fields that have no errors, evaluate expression based validations
- If there are still no errors, run custom validation (unless overridden to run with errors)
Source: http://www.stripesframework.org/display/stripes/Validation+Reference
No comments:
Post a Comment