Using the Standard Validators
JavaServer Faces technology provides a set of standard classes and associated tags that page authors and application developers can use to validate a component's data. Table 18-7 lists all the standard validator classes and the tags that allow you to use the validators from the page.
Validator Class | Tag | Function |
---|---|---|
DoubleRangeValidator | validateDoubleRange | Checks whether the local value of a component is within a certain range. The value must be floating-point or convertible to floating-point. |
LengthValidator | validateLength | Checks whether the length of a component's local value is within a certain range. The value must be a java.lang.String. |
LongRangeValidator | validateLongRange | Checks whether the ... |
Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.