2 Replies Latest reply on Feb 16, 2006 12:26 PM by Chad Arimura

    ResourceBundle in Annotation ?

    Eric Chow Apprentice


      In my Entity bean, if I want to add message resource bundle, how can I do that ?

      For example,

      @NotNull(message="password required")
      @Length(min=5, max=15)
      public String getPassword()
      return password;

      Is it possible to define the "NotNull" message in resource bundle style, so that it can display the message depends on the locale?