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.

Table 18-7. The Validator Classes
Validator ClassTagFunction
DoubleRangeValidatorvalidateDoubleRangeChecks whether the local value of a component is within a certain range. The value must be floating-point or convertible to floating-point.
LengthValidatorvalidateLengthChecks whether the length of a component's local value is within a certain range. The value must be a java.lang.String.
LongRangeValidatorvalidateLongRangeChecks 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.