This content has been marked as final.
Show 4 replies
-
1. Re: Seam and Hibernate validation
binnyg Nov 7, 2008 8:10 PM (in response to kirkor.grzegorz.bernas.com.pl)How about a custom validator?
Look for Marcus Popetz's response here -
2. Re: Seam and Hibernate validation
norad2 Nov 7, 2008 8:12 PM (in response to kirkor.grzegorz.bernas.com.pl)You could use a regex validator
@Pattern(regex = "^$|^\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d$")
-
3. Re: Seam and Hibernate validation
binnyg Nov 7, 2008 8:37 PM (in response to kirkor.grzegorz.bernas.com.pl)or a regular expression as Dan mentioned. You can make the rule more readable like this
@Pattern(regex = "^$|^\d{26}$")
-
4. Re: Seam and Hibernate validation
joblini Nov 8, 2008 7:02 PM (in response to kirkor.grzegorz.bernas.com.pl)Post your code, especially the a4j:support. You need to use the onblur event so that validation is performed only when you move out of the field.