Home » JSF f:validateLongRange

JSF f:validateLongRange

by Online Tutorials Library

JSF <f:validateLongRange> Tag

It is used to check whether the local value of a component is within a certain range or not. The value must be any numeric type or String that can be converted to a long.

Attributes

Attribute Description
minimum It is used to set minimum length for the component.
maximum It is used to set maximum length for the component.

Validating an input tag Example

// index.xhtml

// User.java

Output:

JSF F validatelongrange tag 1

You may also like