Since 4.1
The ace:clientValidateValueRange component validates the input of the enclosing component by allowing only numeric values within the defined minimum, maximum, or range to be submitted.
The ace:clientValidateValueRange component can be used to validate the following:
See the ICEfaces Showcase Live Demo of this component, complete with source code.
<html ... xmlns:ace="http://www.icefaces.org/icefaces/components">
<h:body>
<h:form>
...
// Validate that the entered value is not greater than 10.
<ace:textEntry id="textEntry2" value="#{clientValidateValueRangeBean.value2}"
label="Input Value " labelPosition="left" size="8">
<ace:clientValidateValueRange maximum="10" />
</ace:textEntry>
...
// Validate that the entered value is within the range of 10 to 20.
<ace:textEntry id="textEntry3" value="#{clientValidateValueRangeBean.value3}"
label="Input Value " labelPosition="left" size="8">
<ace:clientValidateValueRange minimum="10" maximum="20" />
</ace:textEntry>
...
</h:form>
...
</h:body>
</html>
TagLib Documentation
This section covers attributes involved in the typical use-cases for this component.
minimum required value of the input. If not defined the minimum value is not verified.
maximum allowed value of the input. If not defined the maximum value is not verified.
No direct event listener is associated with this component.
No direct client behavior is associated with this component.
Not applicable.
Not applicable.
Not applicable.