previous | index | next

The f:validator Tag

The f:validator tag can be used with validator IDs to achieve the same effect as standard validators. For example:
     <h:inputText id="card" value="#{payment.card}">
        <f:validator validatorId="javax.faces.validator.LengthValidator">
           <f:attribute name="minimum" value="13"/>
        </f:validator>
     </h:inputText>

previous | index | next