Name
<f:validateLongRange>
Synopsis
This action creates an instance of
the
validator registered with the ID
javax.faces.LongRange
, configures it based on the
action attributes and associates the validator instance with the
component represented by the closest JSF component parent action
element.
Syntax
<f:validateLongRange [maximum="max"] [minimum="min"] />
Attributes
Attribute name |
Java type |
EL expression type |
Description |
maximum |
long |
Any |
The maximum allowed value. |
minimum |
long |
Any |
The minimum allowed value. |
Example
<h:inputText value="#{employee.salary}">
<f:convertNumber type="currency" />
<f:validateLongRange minimum="50000" maximum="150000" />
</h:inputText>
Get JavaServer Faces 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.