[jboss-user] [JBoss Seam] - @Length doesn't work with Character/char

jcalienes do-not-reply at jboss.com
Sat Mar 31 12:29:57 EDT 2007


seam-gen generates this code:

 @Column(name = "CATEGORIA", nullable = false, length = 1)
 @NotNull
 @Length(max = 1)
 public char getCategoria() {
   return this.categoria;
 }

and in the xxxEdit.xhtml doesn't generate:
 size="1" maxlength="1"


next, when i enter 'A' in this field, seam complain: "length must be between 0 and 1".

i had to remove @Length, and add size and maxlength to work. i think it would be nice that seam-gen do it for me.

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

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



More information about the jboss-user mailing list