9 Replies Latest reply on May 2, 2011 10:46 AM by Nikhil Patil

    Custom messages for standard JSF validators?

    Nikhil Patil Newbie


      I'm using Richfaces 4 + mojarra 2.0.4


      <h:inputText id="uname" value="#{userBean.fname}" validatorMessage="Fname is reuqired">
                 <f:validateRequired />
      <rich:message for="uname"/>

      This still prints something like


      frmContent:uname: Validation Error: Value is required.


      Even In the showcase, the messages are displayed in the same manner.

      Is it possible to customize these messages? (cause these are not so end-user friendly!)


      Since this is a required validator, I also tried

      requiredMessage="Fname is reuqired"


      That didnt work either.