1 2 Previous Next 15 Replies Latest reply on Jul 15, 2011 7:22 PM by Shay Shmeltzer-Oracle

    return to tabbed page

      I have a main jspx in which I have tabs. If i have a command button on the page and I use a commandButton to pop up a dialog box.

      I have two problems, the dialog box does not show in a dialog box, it just shows in a new browser window.
      Second how do I return to the tab that brought me to the dialog
        • 1. Re: return to tabbed page
          Shay Shmeltzer-Oracle
          It might help if you'll actually tell us how you go about showing the popup.
          Are you using the af:showPopupBehavior?
          • 2. Re: return to tabbed page
            <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>
            • 3. Re: return to tabbed page
              Navaneetha Krishnan Nataraj
              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?

              • 5. Re: return to tabbed page
                Shay Shmeltzer-Oracle
                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:

                • 6. Re: return to tabbed page
                  Sumit Yadav
                  Hi ,
                  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:popup id="p1"
                  <af:dialog id="d1" type="none" title="Confirmation">
                  <af:panelGroupLayout id="pgl3">
                  <af:outputText value="Do you really want to save the changes ?"
                  <f:facet name="buttonBar">
                  <af:group id="g1">
                  <af:commandButton actionListener="#{bindings.customCommitResponsibility.execute}"
                  text="Yes" id="cb5" action="editToSearch"/>
                  <af:commandButton text="No" id="cb2"/>

                  Please let me know
                  • 7. Re: return to tabbed page
                    Navaneetha Krishnan Nataraj
                    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"
                    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
                    <af:document id="d1">
                    <af:form id="f1">
                    <af:panelTabbed id="pt1">
                    <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:popup id="p1">
                    <af:dialog id="d2" title="Dialog Title">
                    <af:outputText value="Dialog Contents" id="ot1"/>

                    • 8. Re: return to tabbed page
                      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
                      • 9. Re: return to tabbed page
                        Shay Shmeltzer-Oracle
                        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.
                        • 10. Re: return to tabbed page
                          Do you mind posting a small example
                          • 11. Re: return to tabbed page
                            Could you post the backing bean code so I can see what you are doing?
                            • 12. Re: return to tabbed page
                              chk this
                              • 13. Re: return to tabbed page
                                Shay Shmeltzer-Oracle
                                See this blog and video on converting a page into a reusable page fragment and region:
                                • 14. Re: return to tabbed page
                                  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
                                  1 2 Previous Next