To register a standard JSF validator on a component using a standard tag:
Note: You can register more than one validator on a component. JavaServer Faces calls the validators in the order they are added to a component.
<h:inputText id="zip" value="#{employee.zipCode}">
<f:validateLength minimum="5" maximum="9"/>
</h:inputText>
<h:inputText id="bonus" value="#{employee.bonus}">
<f:validateLongRange minimum="#{MyBean.miminum}"/>
</h:inputText>
About Standard JSF Validators
Registering a Custom Validator on a Component
Reference: Standard JSF Converter and Validator Tags
Copyright © 1997, 2004, Oracle. All rights reserved.