Search This Blog

Tuesday, 16 April 2013

Doing two Declarative Operations with One Button


Doing two Declarative Operations with One Button


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.

No comments:

Post a Comment