This content has been marked as final. Show 15 replies
It might help if you'll actually tell us how you go about showing the popup.
Are you using the af:showPopupBehavior?
<af:commandButton id="done" useWindow="true" windowWidth="300" windowHeight="200"
text="View Results/Apply Changes"
action="dialog:dialog age name">
<from-view-id>/parent page tab</from-view-id>
<from-outcome>dialog:dialog Page name</from-outcome>
<to-view-id>/dialog page name</to-view-id>
What Version of JDeveloper are you using? Specifying the right version might help participants to provide more inputs to your problem.
Looks like, 10g for me as you are using 'dialog:outcome' for showing dialog?
If you are using 11.1.2 and ADF Faces you should place the navigation rule in the adfc-config.xml file to get the popup to show.
That said, if you are using 11g then why not work with embedded pop-ups?
See this tutorial:
You can use af:popup and inside a that u can use a af:dialog to show the buttons.
Check this code may be helpful ..
here i am using a commit button to ask my user if want to save the changes.
But i am using a bean method to trigger my popup not the af: showpopup behavior
<af:dialog id="d1" type="none" title="Confirmation">
<af:outputText value="Do you really want to save the changes ?"
text="Yes" id="cb5" action="editToSearch"/>
<af:commandButton text="No" id="cb2"/>
Please let me know
You can embedded popups:
Here is the sample for your use-case:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
<af:showDetailItem text="showDetailItem 1" id="sdi1">
<af:commandButton text="Show Popup" id="cb1" partialSubmit="true">
<af:showPopupBehavior triggerType="click" popupId="p1"/>
<af:showDetailItem text="showDetailItem 2" id="sdi2"/>
<af:dialog id="d2" title="Dialog Title">
<af:outputText value="Dialog Contents" id="ot1"/>
Thanks everyone for your responses all of these are helpful. I still have a problem that is unanswered yet. I cant seem to do two popups in 1 page. The first one does not maintain its windowWidth and windowHeight.
Any sugguestions? How can I put the dialog in a separate page and include the page as a dialog in the parent page
Edited by: user597294 on Jul 14, 2011 4:02 PM
You can convert a page to be a page fragment and put it in a bounded taskflow.
Then you can include the taskflow as a region in a pop-up in the master page.
Do you mind posting a small example
Could you post the backing bean code so I can see what you are doing?
See this blog and video on converting a page into a reusable page fragment and region:
I converted the page to a page fragment. Not sure how to insert it as a region as a popup in the master page. It has to be a button action. Could you please elaborate?
I really appreciate your help. When I drag the jsff component, it does not drag it as a region it drags it in as a subview
Edited by: user597294 on Jul 15, 2011 12:09 PM