My Oracle Support Banner

The Popup "Af:Dialog" and "Af:Popup" Disappear When Used in WebCenter Portal (Doc ID 1437660.1)

Last updated on NOVEMBER 12, 2012

Applies to:

Oracle WebCenter Portal - Version 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:

<af:showPopupBehavior popupId="p1" triggerType="mouseHover"/>

Following is the entire code of the Dialog.jspx:

<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="" version="2.1"
< contentType="text/html;charset=UTF-8"/>
<af:document id="d1">
<af:form id="f1">
<af:goButton text="goButton 1" id="gb1"/>
<af:showPopupBehavior popupId="p1" triggerType="click"/>
<af:popup id="p1">
<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.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.