[jboss-user] [JBoss Seam] - Validator gets called twice
Eethyo
do-not-reply at jboss.com
Thu Nov 8 11:36:48 EST 2007
Hi,
I have a question of understanding:
I have written a validator, which is working pretty fine,... well actually it should.
The validator gets called twice.
If I create a new Object of an entity with an autogenerated ID and persist it,
the validator gets called before this entity has an ID and returns TRUE, so no validation error.
But then the thing:
After the entity got his ID it gets validated again and then (caused by some validation rules i have written) the validator returns false and there is no message thrown to the JSF, instead i get a regular "Transaction failed".
Any ideas why the validator is called twice and how to avoid this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102998#4102998
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102998
More information about the jboss-user
mailing list