previous | index | next

Validation Errors

Validation errors are handled in the same was as conversion errors.

Here are the standard validation error messages.

As with converter messages, these can be overridden in your message bundle.

You can also supply totally different messages by using the requiredMessage or validatorMessage attributes:

     <h:inputText id="card" value="#{payment.card}" required="true"
                  requiredMessage="#{msgs.cardRequired}"
                  validatorMessage="#{msgs.cardInvalid}">
        <f:validateLength minimum="13"/>
     </h:inputText>

You can bypass validation as described in the Standard JSF Tags.


previous | index | next