2 Replies Latest reply on Dec 26, 2007 4:09 PM by Pete Muir

    parameters to custom validation messages in Hibernate annota

    Karol Oslowski Newbie

      Dear All,

      I'm working on validation right now and I have encountered a new problem. I use the standard Validation annotation @Length in such a way:

      @Length(min=4, max=12, message="#{messages.loginLengthValidation}")

      loginLenghtValidation is an entry in my resource bundle. In hibernate documentation I found out that if I want to include in this message the min or max value I should put { max} ({ min}). But this ain't working.

      What is the correct syntax? Is it at all possible?

      Kind Regards,

      Karol Oslowski