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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...