Tuesday May 10, 2011

How to close an ADF dialog which opens in a new window..

If you are trying to open an adf taskflow in a dialog as an external-window and you want to close the dialog programmatically without making any change to your taskflow then refer to the following code.

Approach1: Using Javascript (not elegant way and also not recommended)

top.close();

Approach 2: ADF way: In the close button listener method you could write sth like this -

AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();

afContext.returnFromDialog(null, null);

using returnFromDialog() can pass values to the parent frame using the returnevent.

About

Talk on ADF (Mail To: vijay.x.mohan@oracle.com)

Search

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