3 Replies Latest reply on Apr 23, 2008 7:47 PM by bzelenkapic

    Custom set of messages for Hibernate Validator annotations

    bzelenkapic

      Hi,


      I want to have a custom set of messages within ValidatorMessages.properties for Hibernate Validator annotations. For example:


      #in ValidatorMessages.properties
      myKey = Some message



      and


      /**
       *  Entity bean
       */
       public class User implements Serializable { 
       ...
       @Length(min=5, message="{myKey}")
       public String getPassword() {
       ...
      



      And the result on the page is {myKey} :(
      It seems like a Seam ( version 2.0.0.GA ) cannot resolve a key from resource bundle. Is this option supported by the Seam?


      Thanks,

      Boris Zelenkapic