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 11.1.1.4.0 and later
Information in this document applies to any platform.

Symptoms


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"
options

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="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:goButton text="goButton 1" id="gb1"/>
<af:showPopupBehavior popupId="p1" triggerType="click"/>
</af:form>
<af:popup id="p1">
<af:dialog id="d2" type="yesNoCancel" title="Pramod Dialog"/>
</af:popup>
</af:document>
</f:view>
</jsp:root>



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.

Cause

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