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

    Custom set of messages for Hibernate Validator annotations

    Boris Zelenkapic Newbie


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

      #in ValidatorMessages.properties
      myKey = Some message


       *  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?


      Boris Zelenkapic