[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash

gavin.king@jboss.com do-not-reply at jboss.com
Thu Sep 7 14:29:59 EDT 2006


There is one problem with performing validation during the action phase: if you are using an extended persistence context, you would prefer to do validation before applying values onto the model object. But by the time we get to the action method, the values have already been applied. It is then difficult to roll back the change to prevent them being written to the database.

However, there is a solution: if you use an extended persistence context with manual flushing, you are fine. There is better support for this in CVS.

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

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



More information about the jboss-user mailing list