Monday, May 2, 2016

Validator Tags

1
1Create a validator class by implementing javax.faces.validator.Validatorinterface.
2Implement validate() method of above interface.
Validates length of a string

2
Validates range of numeric value
3
Validates range of float value
<f:validateDoubleRange minimum="1000.50" maximum="10000.50" />
4
Validate JSF component with a given regular expression.
<f:validateRegex pattern="((?=.*[a-z]).{6,})" />
5
Creating a custom validator

No comments:

Post a Comment