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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to