Doing two Declarative Operations with One Button
By Shay Shmeltzer-Oracle on Apr 23, 2010
You can file the below video under "things that get asked on OTN a lot".
With ADF it is very easy to drag an operation to a page to create a button that activate it.
But what if you want a single button to invoke two operations? For example have a button that does a "Delete" as well as a "Commit".
The way to do it is to add an action binding, and then overwrite the button function in a backing bean to call the additional action.
The nice thing is that JDeveloper will create all the binding code for you in the backing bean - all you need to do is duplicate it.
Here is a quick demo: