Friday Apr 23, 2010

Doing two Declarative Operations with One Button

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:

About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today