Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Rollback after model validation error

587515Oct 6 2011 — edited Oct 9 2011
Dear all,

I have a Rich table and I want to automatically rollback a table row whenever a column value update in the row errors out in the ADFModel (e.g. an entity attribute validation method returns false).

I have followed the directions posted in ADF Code Corner (October 2010) but they assume the existence of a Rollback button.

I need to do it automatically when the user presses an Update button (and the subsequent action code of this button in a request managed bean is executed), or when the user changes row in the table without updating the row.

My problem is that I do not know how to capture the ADF model error so as to run the Rollback operation.

Should I do it within the action code of my Update button or should I implement a JSF or ADF page life cycle listener ? What is the Java code that identifies a Model update error ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2011
Added on Oct 6 2011
12 comments
1,338 views