2 Replies Latest reply on Jul 3, 2011 6:37 AM by Mohammad Najdawi

    can i change the name of the ValidationMessages.properties to any name i want? if yes, HOW?

    Mohammad Najdawi Newbie

      Dear All,
      i am using hibernate validation + JSR 303 validation with JSF 2 and RichFaces 4

       

      when i add annotations on my bean attributes, i get the messages from the ValidationMessages.properties on the default (root) package, assume the case as folllow:

       

      class MyBean{
      @NotEmpty(message="{Name_Error_Message}")
      private String name;
      // rest of code here
      }

       

      ValidationMessages.properties
      Name_Error_Message = The name cannot be empty

       

      my question is: can i change the name of the ValidationMessages.properties to any name i want? if yes, HOW?

       

      Regards.

       

      Mohd Noor