[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-27 Thread [EMAIL PROTECTED]
Don't set the min property. If a field is null then it isn't the minimum length ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058036#4058036 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058036

[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-27 Thread [EMAIL PROTECTED]
Hibernate validators are really easy to write - you could write your own @length that counts a null as a valid value. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058037#4058037 Reply to the post :

[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-27 Thread pettersonfp
Hi Peter, Thanks, I´ll do that. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058095#4058095 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058095 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-26 Thread pettersonfp
Unfortunatelly the property is already annotated with @Column(nullable=true) as well. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4057883#4057883 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057883

[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-26 Thread enzhao
@Column(name=aColumn, nullable=true) @Length(min=3, max=30) public SomeType getSomething(){ return this.something; } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4057882#4057882 Reply to the post :