OverviewSince 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:
Getting Started<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> Attributes
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. Validation Behaviour
Event ListenersNo direct event listener is associated with this component. Client Behavior EventsNo direct client behavior is associated with this component. JavaScript APINot applicable. Keyboard and ARIA SupportNot applicable. CSS ClassesNot applicable. Known Issues
Additional ResourcesNone. |
ClientValidateValueRange
© Copyright 2021 ICEsoft Technologies Canada Corp.