[jboss-user] [JBoss Seam] - parameters to custom validation messages in Hibernate annota

kosl do-not-reply at jboss.com
Sat Dec 22 20:59:37 EST 2007

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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115224#4115224

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115224

More information about the jboss-user mailing list