Em Fri, 11 Sep 2009 18:30:34 -0300, Bruno Santos <bitbet...@gmail.com> escreveu:

Hello,

Hi!

Well, the reason should be that with persist in validate() i validate
that the entity that's inserted doesn't conflict with any database
constraint like in this case and the onsucess isn't fired wich in the
case a constraint is violated it doesn't seem to make sense.

IMHO, you have to write code to do that (query the database if needed) intead of sending data to the database and expect it to raise erros to you.
IMHO, you should never write to your datastore in onValidate().

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to