[jboss-user] [JBoss Seam] - How to validate only if the user entered a string
chrismalan
do-not-reply at jboss.com
Sat Jan 12 10:22:58 EST 2008
In the User entity bean an e-mail address is validated using @Email. It works fine, but the user should also be allowed not to enter anything in this field.
The field is not annotated with @NotNull and the default in the database is null for this field. However, Seam wants a value there. The form does not require a value to be entered.
How do I tell Seam to make sure any value is a valid email address if something is entered, but to allow null through?
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119336#4119336
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119336
More information about the jboss-user
mailing list