72
JSF <f:validateDoubleRange> Tag
It is used to check that the value of a input field is within a certain range or not. The value must be floating-point or convertible to floating-point.
<f:validateDoubleRange> TagAttributes
Attribute | Description |
minimum | It is used to set minimum value for this component. |
maximum | It is used to set maximum value for this component. |
<f:validateDoubleRange> Tag Example
In this example, we are validating user input of double type within specified range. This program will report an error message if input does not validate.
// index.xhtml
// User.java
// response.xhtml
Output:
// index page
// index page
// response page
Next TopicHTML Aside tag