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

Reply via email to