The Popup "Af:Dialog" and "Af:Popup" Disappear When Used in WebCenter Portal
Last updated on NOVEMBER 12, 2012
Applies to:Oracle WebCenter Portal - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
The ADF Popup "af:popup" and "af:dialog" when used in WebCenter Portal will disappear with auto-refresh when called from WebCenter Portal application. This works correctly when used in plain ADF taskflow.
Below are the steps to reproduce at will:
1. Create a plain JSF page called Dialog.jspx and add a "goButton" to it.
2. Create a new <af:popup> and add a <af:dialog> to it with the "YesNoCancel"
3. Associate the "goButton" to invoke the popup as below:
Following is the entire code of the Dialog.jspx:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
<af:goButton text="goButton 1" id="gb1"/>
<af:showPopupBehavior popupId="p1" triggerType="click"/>
<af:dialog id="d2" type="yesNoCancel" title="Pramod Dialog"/>
Run the page and test by clicking on the "goButton1". It displays the dialog
correctly and prompts you to click Yes, No or Cancel.
Adding the same Dialog.jspx into WebCenter Portal application:
Now associate the above created Dialog.jspx to pages.xml in Page hierarchies
and run the app, click the Dialog page in Portal, and click on the "goButton1". The
popup appears and immediately disappears by an auto-refresh, and lands on the
WebCenter Portal Home page.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms