[jboss-user] [JBoss Seam] - Hibernate validator @CreditCardNumber not working

milli do-not-reply at jboss.com
Wed Jul 11 03:31:09 EDT 2007


Hi,

I'm using seam 1.2.1 and tried it with both Jboss AS 4.0.5 and 4.2. The hibernate validator @CreditCardNumber is not validating the credit card number form input.

I did look deep in to it and found out the hibernate-annotations.jar used by JBoss has validator classes in it. But I do not see CreditCardNumber class in the jar file. I think JBoss(both 4.0.5 and 4.2) is using an old version hibernate-validator classes. Even other validators like @Digits etc. are not part of it. 

Has anyone come across this issue? How do I use the latest version of hibernate-validator? I tried updating the one used by Jboss but it didn't seem to like it. I hoped 4.2 might be using the latest one but it does not either.

I tried adding the jar in WEB-INF/lib of my application but it does not work either.



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

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



More information about the jboss-user mailing list