[jboss-user] [JBoss Seam] - accessing @length's 'max' value

skanky78 do-not-reply at jboss.com
Mon Nov 12 16:48:32 EST 2007


is there any chance to access the 'max' property of the hibernate length-validator via expression language or any other way?

anonymous wrote : @Length(min = 5, max = 40)
  | private String	name;

i want to use the given 'max' value from the annotation to restrict the input field via maxlength property:

anonymous wrote : input type="text" maxlength="#{xxxxxxxx.max}"

any ideas?

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

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

More information about the jboss-user mailing list