5 Replies Latest reply on May 17, 2011 10:39 AM by Andi D

    default message of <rich:message> for validation errors

    Andi D Newbie

      Hi community,

       

      I would like to change the default message for the rcih validator.

      My example:

       

      • I have the following been (Hibernate):

       

      @Entity
      @Table(name = "example")
      public class Example ... {    @Min(value=0, message="My Message")
          private Double d;
          ...
          ...
      }
      

       

      • My xhtml page looks like:

       

      ...        
        <h:inputText id="example" value="#{example.d}">
          <rich:validator event="keyup"/>
        </h:inputText>
      ...
      

       

      The validation works very fine and if I enter the number "-2" I get my configured message. The validation also checks if I enter some characters like "asdf" where I'm getting "value must be a number between 4.9E-324 and 1.7976931348623157E308".

       

      My question is where can I change this text?

       

      Regards,

      Andi