[jboss-user] [JBoss Seam] - Re: Validation throws an exception instead of redisplaying t

anescu do-not-reply at jboss.com
Fri Jun 22 12:03:59 EDT 2007


I looked into the EmailValidator class supplied with Seam 1.2.1, and its different from that found in SVN. So I found the culprit, it doesn't consider valid a String with value ''. And apparently this is the value that gets saved into the bean:

Java code in Home.update():

        System.out.println( "###Email: '" + getInstance().getContact().getEmail()+ "'" );
  |         System.out.println( "###Email validator: '" + eVal.isValid( getInstance().getContact().getEmail() )+ "'" );

And in the log:

2007-06-22 18:57:47,549 INFO  [STDOUT] ###Email: ''
  | 2007-06-22 18:57:47,549 INFO  [STDOUT] ###Email validator: 'false'

The vestion in SVN treats that case as well.
I'm also eager to find when the similar problem in the PatternValidator will be solved.

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

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



More information about the jboss-user mailing list