Using an af:popup to handle pending changes
In the recipe Determining whether the current transaction has pending changes in this chapter, we showed how to establish whether there are uncommitted pending changes to the current transaction. In this recipe, we will use the functionality implemented in that recipe to provide a generic way to handle any pending uncommitted transaction changes. Specifically, we will update the CommonActions
framework introduced in Using a generic backing bean actions framework, Chapter 1, Pre-requisites to Success: ADF Project Setup and Foundations to raise a pop-up message window asking you whether you want to commit the changes. We will add the pop-up window to the TemplateDef1
page template definition that we created in Using page templates, Chapter 1,
Getting ready
We will modify the TemplateDef1
page template definition and the CommonActions
actions framework. Both reside in the Sharedcomponents
workspace, which is deployed as an ADF Library JAR and it was...