Rollback after model validation error
587515Oct 6 2011 — edited Oct 9 2011Dear 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 ?