Javatpoint Logo
Javatpoint Logo

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

JSF F validatedoublerange tag 1

// index page

JSF F validatedoublerange tag 2

// response page

JSF F validatedoublerange tag 3
Next TopicHTML Aside tag




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA