3 Replies Latest reply on Jul 27, 2008 9:02 PM by System Administrator

    overriding JSF required msg with hibernate validator msg

    System Administrator Expert

      I have

      @NotNull(message="foo")

      in my entity class for a getter method which is not displaying when I use this in the facelet:


      <rich:messages/>
      <h:inputText id="id1" value="#{componentName.phoneNumber}" required="true"/>



      how can I override the default value is required message from JSF with the custom message from @NotNull?