Restoring the current row after a transaction rollback

On a transaction rollback, the default behavior of the ADF framework is to set the current row to the first row in the rowset. This is certainly not the behavior you expect to see when you rollback while editing a record.

This recipe shows how to accomplish the task of restoring the current row after a transaction rollback.

Getting ready

You will need to have access to the shared components workspace that was developed in the Breaking up the application in multiple workspaces recipe in Chapter 1, Pre-requisites to Success: ADF Project Setup and Foundations. The functionality will be added to the ExtApplicationModuleImpl and ExtViewObjectImpl custom framework classes that were developed ...

Get Oracle JDeveloper 11gR2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.