Doing two Declarative Operations with One Button
Posted
by shay.shmeltzer
on Oracle Blogs
See other posts from Oracle Blogs
or by shay.shmeltzer
Published on Fri, 23 Apr 2010 12:44:45 -0800
Indexed on
2010/04/23
21:04 UTC
Read the original article
Hit count: 515
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:
© Oracle Blogs or respective owner