How to bind register in Popup/Dialog to be filtered by ID

Hello all,
we use Oracle JDeveloper 11.1.2.3.0 and I'm relatively new to this development tool.
We currently open a dialog from a table (bound to DataControl). The dialog is opened with a common ShowPopupBehavior on a commandImageLink and already shows the correct detail for the selected item from the table in the common area of the dialog.
Another element in this dialog is a panelTabbed in the footer facet of the dialog.
There are some lists created from datacontrols (drag/drop into showDetailItem --> Table), which should be filtered by the ID of the selected item in the table. I know that something is missing, but I havn't found where to enter this binding....
The (partial) page-source:
<af:table.....>
<af:column....>
<af:commandImageLink ... partialSubmit="true">
<af:showPopupBehavior popupId="::p1" triggerType="action"/>
</af:commandImageLink>
</af:column>
</af:table>
<af:popup id="p1"....>
<af:dialog....>
<!-- The databound input values here work fine -->
<af:panelTabbed....>
<af:showDetailItem.....>
<af:table......>
<!-- THIS TABLE IS CREATED FROM ANOTHER DATACONTROL AND NOT BOUND CORRECTLY -->
</af:table>
</af:showDetailItem...>
</af:panelTabbed>
</af:dialog>
</af:popup>
I wonder how I can realize this binding....
Can anyone help, please?
Thanks in advance!

If you use a JBO DataControl (i.e. a DataControl wrapping an ADF BC ApplicationModule), you can use master-detail ViewObject Links in order to filter automatically the detail ViewObjects according to the currently selected master row in the master VO. You must include the detail VOs into the AM's data model through the corresponding master-detail VO Links (but not as standalone VOs) in order for the automatic filtering to work.
Dimitar
Edited by: Dimitar Dimitrov on Mar 12, 2013 7:46 PM
I just saw that the your detail table comes from another DataControl. If the master table and the detail table do not come from one and same DataControl, VO Links would not help. In this case you can implement a PopupFetchListener for the popup (which is invoked each time when the popup is being opened) where you can filter the detail collections programatically according to the currently selected master record.

Similar Messages

  • How to pass data to popup dialog

    Hi All,
    How do I pass some data from the main window to the popup dialog. Please help.
    Thanks in advance.

    I think you can create a Group with a scene that contain the value from the main window then use the getContent.add() method of Popup.
    Group root = new Group();
    Scene scene = new Scene(root,200,200);
    //add the value form main windown to scene
    Popup pop = new Popup();
    pop.getContent().add(root);
    Glad if this can help you

  • How can I rename buttons in dialog popup ?

    Hello.
    I want rename buttons "OK", "Cancel" with my names in popups.
    I create new values in domen WDR_POPUP_BUTTON_KIND
    Next enhance interface IF_WD_WINDOW with new attributes:
    CO_BUTTON_CP type WDR_POPUP_BUTTON_KIND
    But i have problem in CL_WDR_INTERNAL_WINDOW->IF_WD_WINDOW~SET_BUTTON_KIND:
      case me->buttons-button_kind.
        when co_buttons_abortretryignore.
          wa_button-button      = co_button_abort.
          wa_button-button_text = cl_wdr_texts=>get_text( '201' ).
          wa_button-tooltip     = cl_wdr_texts=>get_text( '201' ).
          wa_button-is_enabled  = abap_true.
    This code show only predefined type of buttons can use. 
    How can I rename buttons in dialog popup ?

    When you subscribe to button event  you can rename the button
    * Popup
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_window(
        window_name          = 'W_POPUP'
        message_display_mode = if_wd_window=>co_msg_display_mode_selected
        button_kind          = if_wd_window=>co_buttons_ok
        message_type         = if_wd_window=>co_msg_type_none
        default_button       = if_wd_window=>co_button_ok
      DATA:  l_api TYPE REF TO if_wd_view_controller.
      l_api = wd_this->wd_get_api( ).
    " subscribe to button event
      lo_window->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_ok
                   BUTTON_TEXT       = u2018Approveu2019 " renaming the button text
                   action_name       = 'ON_OK_POPUP'
                   action_view       = l_api
                   is_default_button = abap_true ).
      lo_window->open( ).
    Radhika

  • How to enable sorting in Search Popup dialog of inputComboboxListOfValues

    Hi,
    Does anyone know how to enable sorting in Search and Select popup dialog of af:inputComboboxListOfValues?
    This is my problem:
    1. I have a af:inputComboboxListOfValues, when I click on 'More...' (or Search...) link at the bottom of the combobox, the Search and Select popup dialog will appear.
    2. This popup dialog will only contain one column, say that column is "Region". This column will contain all the Region Names that is sorted by Region ID (which is not visible).
    3. When user mouse-over on the Header title ('Region') of this popup dialog, two arrows will appear. Up arrow which is equivalent to 'Sort Ascending' and Down arrow which is equivalent to 'Sort Descending'
    4. But when user click on either of these arrows, nothing is happening. The sorting is not working at all.
    Could someone please help me how to enable this sorting?
    Any help is greatly appreciated.
    Thanks,
    Rei

    Unfortunately full text search is not supported in Azure SQL DB.  
    Cotega - Azure SQL DB Monitoring, Notification and Scheduling service

  • How to prevent popup dialog from closing when commandbutton clicked

    Hi,
    I have a af:commandButton inside a popup dialog and the button action calls a method in backing bean. When this button is clicked I would like to run the method in backing bean and return control to the popup window. The method seem to run fine but the popup dialog closes automatically. Is there a way to prevent popup dialog from closing for this action?
    Thank you
    Kevin

    Hi Frank,
    Thanks for the link. I am not sure how to use this in my case. Following is part of what I am trying
    <af:popup ...>
    <af:dialog>
    <af:form usesUpload="true">
    <af:inputFile ..../>
    <af:commandButton text="upload" action="#{backingbean.uploadAction}"/>
    <af:outputText value="#{backingbean.filename} was successfully uploaded"/>
    </af:form>
    </af:dialog>
    </af:popup>
    When user clicks upload button I want to display a message that the file was successfully uploaded and keep the popup window open. But what happens now is once the file upload completes, the popup window closes automatically. This file upload part is not a must, user could skip doing the upload and instead input some text in a text area below (not shown in the code above). User could also just click cancel and exit the popup any time, so there is no mandatory field that I could check before closing the popup. Is there something I could do for this?
    thanks
    Edited by: user10720929 on Dec 23, 2008 10:36 PM

  • How to display a screen as Popup Dialog box in Module Pool

    Hi All,
    I have a requirement to display a popup dialoge box into module pool.
    i need to display a screen as a popup on the current screen on a button click.I have developed a screen and in atribute tab i have defined the screen type as modal dialog box but  it is displaying previous screen screen is hide i want to display on the same screen as a popup.
    Thanks
    Narendra

    Hi Narendra,
    Try to trigger the popup once it is done with the previous action might be anything.
    i have shown one sample code where after i click on save button when the data is saved successfully
    after that it has to trigger me a popup asking for conformation for the next action.
    A small piece of code
    INSERT INTO ZORMD1 VALUES WA_ZORMD1.
        IF SY-SUBRC = 0.
          G_LOCAL1 = 0.
          MESSAGE S000.  " Data saved successfully and immediately call the popup
    CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
            EXPORTING
      DEFAULTOPTION  = 'Y'
    TEXTLINE1 = 'SUCCESSFULLY SAVED'
              TITEL = 'POPUP FOR conformation'
             START_COLUMN         = 25
             START_ROW            = 10
            CANCEL_DISPLAY       = 'X'
           IMPORTING
    ANSWER  = G_PRINT
    IF G_PRINT = 'J'.
    PERFORM PRINT_OUT.
    ENDIF.
    Do the modification according to your requirement.
    Cheers!!
    VEnk@

  • How to make panel collection with auto width and height in popup dialog ?

    Hi,
    I have ony af:popup in that I have added af:dialog. And in this af:dialog I have added af:table which is surrounded by af:panelCollection.
    Means my popup structure is like as below
    af:popup
    af:dialog
    af:panelCollection
    af:table
    If I set resize="on" in af:dialog then I can able to resize my popup dialog but the panelCollection inside the af:dialog is not become auto adjusted.
    I am able to make panelCollection width auto adjusted by using AFStretchWidh style class but not able to adjust its height.
    Hope you can understand my problem and pls try to provide me its solution if you have already implemented this.
    Regards,
    DevD

    I believe you are using af:panelGroupLayout because there are some other components except af:panelCollection, so try this combination
    <af:popup id="p1">
      <af:dialog id="d2" resize="on" stretchChildren="first">
        <af:panelStretchLayout id="psl2">
          <f:facet name="bottom"/>
          <f:facet name="center">
            <af:panelCollection id="pc1">
              <f:facet name="menus"/>
              <f:facet name="toolbar"/>
              <f:facet name="statusbar"/>
              <af:table var="row" rowBandingInterval="0" id="t1">
                <af:column sortable="false" headerText="col1" id="c1">
                  <af:outputText value="#{row.col1}" id="ot5"/>
                </af:column>
                <af:column sortable="false" headerText="col2" id="c3">
                  <af:outputText value="#{row.col2}" id="ot4"/>
                </af:column>
                <af:column sortable="false" headerText="col3" id="c2">
                  <af:outputText value="#{row.col3}" id="ot3"/>
                </af:column>
                <af:column sortable="false" headerText="col4" id="c4">
                  <af:outputText value="#{row.col4}" id="ot2"/>
                </af:column>
                <af:column sortable="false" headerText="col5" id="c5">
                  <af:outputText value="#{row.col5}" id="ot1"/>
                </af:column>
              </af:table>
            </af:panelCollection>
          </f:facet>
        </af:panelStretchLayout>
      </af:dialog>
    </af:popup>Put only af:panelCollection in CENTER facet of af:panelStretchLayout and use other facets of af:panelStretchLayout for other components.

  • How to show dynamically created popup from created command button?

    In my region I have a toolbar. The buttons in the toolbar are created dynamically in the bean. When one of the buttons is clicked I’d like to display a popup dialog.
    So, the code looks something like this:
    RichCommandToolbarButton button = new RichCommandToolbarButton();
    // set icons, text, etc….
    RichPopup popup = new RichPopup();
    // set id etc.
    RichDialog dialog = new RichDialog();
    dialog.setType(“cancel”);
    // add title, text, another button to toolbar, etc.
    popup.getChildren().add ( dialog);
    ClientListenerSet set = button.getClientListeners();
    if (set == null)
    set = new ClientListenerSet();
    button.setClientListeners(set);
    set.addFeatureDependency("AdfShowPopupBehavior");
    set.addBehavior("new AdfShowPopupBehavior('" + popup.getId() + "', AdfRichPopup.ALIGN_AFTER_END,null,'action')");
    button.setPopup(popup);
    In the corresponding .jsff the toolbar and the buttons are rendered in the following way:
    <af:toolbar id="t1" styleClass="AFStretchWidth"
    visible="#{backingBeanScope.MyBean.visible}" >
    <af:forEach items="#{backingBeanScope.MyBean.buttons}" var="adfButton" >
    <af:commandToolbarButton binding="#{adfButton}" />
    </af:forEach>
    This kind of works, except the button shows up with the down-arrow menu icon, which when clicked shows a tiny empty rectangle/menu. When the button itself is clicked, it correctly shows the popup with the dialog.
    So… how do I do this w/o doing the button.setPopup() so that I do not get the empty menu, but just get the popup to show when the button is clicked? Or is there a way to disable showing of the (empty) menu?
    I have tried adding the popup to the toolbar, but that did not work.
    I have tried adding action listener to the button, and adding the popup to the toolbar there and then showing it (by doing new RichPopup.PopupHints(); popup.show(ph)), but that did not work.
    I have tried adding action listener to the button, and adding the popup to the button getChildren().add() then showing it ((by doing new RichPopup.PopupHints(); popup.show(ph)), but that did not work.
    ANY help will be most appreciated!

    Hi,
    Do u mean to say that u need to open another PLD in when ur user form is open.?
    Please provide more information.
    Thanks,
    Vasu Natari.

  • Acquire data from a tab delimited file using a popup dialog object on a stamp

    I am trying to import data from a tab delimited file using a popup dialog object on a stamp.  I have purchased the book by Thom Parker--All About PDF Stamps in Acrobat and Paperless Workflows and have been working through the examples in the appendix.
    My problem is understanding how to bring the data into the dialog object from the file.
    I don't want to plagiarize his book--so am electing at this time not to show my code.  The  script is reading the file, just not bringing in the records from the file so that I can select which line to import into the stamp.
    I have typed in the code exactly how the book describes, but when the popup dialog object is selected, there is nothing in the drop-down.  When I click OK, the first record is put on the stamp--except for the fields that I am wanting to appear in the dialog object popup box.
    I have searched the forums, and also the JavaScript reference.  There are examples of the popup dialog object, but none of them show how to import the data from a file--just for the items to be typed in as the list.
    Any help would be greatly appreciated!  i have been trying to work on this for several months now.

    Karl
    Thank you for getting back with me!
    In answer to your questions:
    1. Your trusted function is not a trusted function. Did you put this
    function into a folder level script so that it will get executed at system
    startup?--
         yes--I saved the script as a .js file and put it in the following path (I have Acrobat XI Pro for Windows)
    C:\Documents and Settings\tjohnson\Application Data\Adobe\Acrobat\Privileged\11.0\JavaScripts\GetTabData.js
    2. The script cannot find your tab delimited data file, or it cannot
    extract the data. Did you add the data file in the correct location? The
    location from the script in the book would be c:\mydata\Contacts.txt
    Yes--the file is in the same path as the book.
    Below is my code that references the file.
    var cPath = "/c/mydata/Contacts.txt";
    the slashes in the book go in the direction of the text above--should they go in the direction that you have in your question?
    Also,  the name and email address need to be separated by one Tab character.
    They are. 
    3. The fields need to be named the same way as the columns in the data file (the two names are in the first line of the file).
    My headings are RevByFromTab and EmailFromTab--which match the names of the two fields on the stamp.
    So, check that you are not getting any errors in the JavaScript console
    (Ctrl-J or Cmd-J), and verify that the tab delimited file is in the correct
    location
    When I run in the java script console--and I just run the script on the stamp,
    it says
    TypeError: event.source is null
    17:Console:Exec
    undefined
    When I place the stamp on the page, the popup box is working, but when you click on the down arrow, there is nothing listed.  When I click OK, the RevByFromTab is populated by the first item in the file, but the EmailFromTab field says undefined.
    Thank you
    Message was edited by: tdjohnson7700

  • Best strategy for working with popup dialog/PanelWindow (refbook)?

    In JD 11g I want selecting the value from reference book (which returned from DB). This reference book must show in popup dialog.
    I create bounded task flow with page fragment in which place the query filter and table with values for selecting.
    1. I inserted task flow as region in DIALOG component and place command button "OK" and "Cancel" into DIALOG buttons facet.
    Problem - I cant gain access to binding value (which contain ID of selected row) from fragments page definition.
    I try set the "Data Control Scope" value of task flow to "shared", but this did not help.
    2. I place command button "OK" and "Cancel" into page fragment and inserted task flow as region in panelWindow component. Now I cant gain access to binding value from fragments page definition (of course). But I cant auto-close the panelWindow after pressing buttuns on page fragment.
    Please help to solve a problem!

    Thank you for help, Frank!
    I have many reference books (reftables), which contains much records each (two columns - ID, TITLE). Also I have several tables (main tables), which refer to these reference books (maintable.ID_REF1 -> REF1.ID). On page, where I edit record from one of the main tables, i cant use simple LOV combobox, coz many records from reftable. Also I cant use ADF LOV input / ADF CHOICE LIST coz in input fields shows the ID of ref row (i want - the "title" column, bun cant do it). So I have solved to use the modal dialog / panel window in which include the region with reftable (coz each reftable may use in many page with edit of main tables).

  • How to dynamically resize taskflow popup set as inlineDocument.

    I've been trying to figure out how to dynamically set the WindowHeight and WindowWidth of a taskflow deployed as a inlineDocument popup. Sadly, neither the forums nor google came to the rescue so I had to actually figure this one out on my own. But at least now is my opportunity to work up some forum karma! :)
    Sample workspace containing the solution is here: http://www.williverstravels.com/JDev/Forums/Threads/2337969/MaxPopupSize.zip
    General Strategy for Solution:
    - Pull the browser height and width using Javascript
            function browserSize(evt)
              var button = evt.getSource();
              var agent = AdfAgent.AGENT;
              var windowWidth = agent.getWindowWidth();
              var windowHeight = agent.getWindowHeight();
              AdfCustomEvent.queue(button, "customEvent",
                width: windowWidth,
                height: windowHeight
              true);
              evt.cancel();
            }- Using a clientListener and serverListener, pull this information into a managed bean and set height / width in button's setWindowWidth(), setWindowHeight() attribute.
      public void onButtonClick(ClientEvent clientEvent)
        Double dw = (Double)clientEvent.getParameters().get("width")-100;
        Double dh = (Double)clientEvent.getParameters().get("height")-100;
        this.popupButton.setWindowWidth(dw.intValue());
        this.popupButton.setWindowHeight(dh.intValue());
        ActionEvent aE = new ActionEvent(this.getPopupButton());
        aE.queue();  
      }- Due to JSF Lifecycle complications, the managed bean will need to call a different button than the one which holds the client and server listener. It will be the second button (popupButton in the code above) which then calls the popup.
    Props to Frank for the client / server listener tutorial: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf
    Props to Martin Deh for the javascript insights: http://martindeh.blogspot.com/2011/03/dynamic-resizing-for-popup-dialogs.html
    Hope this helps someone down the road.
    Will

    Thanks LovettWB ...
    Your question helped me a lot...  I am able to pass these two parameters width/height to my bean and am able to set it to pop-up :)                                                                                                                                                                                                                                                                                                                                   

  • When I turn on my wifi in top bar and connect,minutes later I get an annoying pop up notification letting me know I'm connected, AGAIN. It freezes everything including psswds and I have to start all over This is petty but how do I shut this popup off?

    When I turn on my wifi in top bar and connect,minutes later I get an annoying pop up notification letting me know I'm connected, AGAIN. It freezes everything including psswds and I have to start all over. This is petty, but how do I shut this popup off?

    What OS X version are you using?
    Can you take a screenshot of the pop-up notification?
    To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse button. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    If you want to attach a screenshot to a response here, click the "camera" icon above the text field:
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the window the cursor is on.
    ⌘ Shift 3 captures the entire screen.

  • Af:popup dialog width and height

    hi all,
    i want to know how to define popup dialog width and height.
    here is my code.
    <af:popup id="popup1" contentDelivery="lazyUncached"
    launcherVar="source" eventContext="launcher" >
    <af:dialog title="General Details - Standard Statement" type="none" id="AddInstDialog"
    inlineStyle="width:600px;height:400px">
    I do something like in above code.
    but it is not working.
    With Regards,
    WP

    add panelWindow
                          <af:popup id="popup5" contentDelivery="lazyUncached">
                            <af:panelWindow id="panelWindow5" title="Stop" modal="true" inlineStyle="width:369px;height:350px;">

  • Create a confirmation popup dialog when submitting a form

    Hi all,
    I have a simple business : ask a question (yes/no) to a user when he is submitting a form.
    This form is an "ADF Form (11g)" and is displayed in a inline dialog. It is triggered for an EntityView when user clicks on an edit button of a table row.
    I've tried lot of different solutions but it never works.
    Let me tell you about these:
    Solution 1: Adding a showPopupBehavior
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <af:inputDate value="#{bindings.Datedeb.inputValue}" label="From:" required="#{bindings.Datedeb.hints.mandatory}" shortDesc="#{bindings.Datedeb.hints.tooltip}" id="id2">
                <f:validator binding="#{bindings.Datedeb.validator}"/>
                <af:convertDateTime pattern="#{bindings.Datedeb.format}"/>
              </af:inputDate>
           <!-- ... -->
              <f:facet name="footer">
                <af:group id="g1">
                  <af:commandButton text="Submit" id="cb1">
                    <af:showPopupBehavior popupId="p1" />
                    <af:returnActionListener/>
                  </af:commandButton>
                  <af:popup id="p1">
                    <af:dialog id="d2" title="Assistance" type="yesNo" dialogListener="#{backingBeanScope.dialogBackingBean.mustClosePreviousAddress}">
                      <af:outputText value="Do you want to close the previous adress automatically ? " id="ot1"/>
                    </af:dialog>
                  </af:popup>
                </af:group>
              </f:facet>
            </af:panelFormLayout>
          </af:form>
        </af:document>The issue is that the +<af:returnActionListener/>+ is never triggered and the form do not close.
    Solution 2: Adding a showPopupBehavior and change the triggerType
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <af:inputDate value="#{bindings.Datedeb.inputValue}" label="From:" required="#{bindings.Datedeb.hints.mandatory}" shortDesc="#{bindings.Datedeb.hints.tooltip}" id="id2">
                <f:validator binding="#{bindings.Datedeb.validator}"/>
                <af:convertDateTime pattern="#{bindings.Datedeb.format}"/>
              </af:inputDate>
           <!-- ... -->
              <f:facet name="footer">
                <af:group id="g1">
                  <af:commandButton text="Submit" id="cb1">
                    <af:showPopupBehavior popupId="p1" triggerType="click" />
                    <af:returnActionListener/>
                  </af:commandButton>
                  <af:popup id="p1">
                    <af:dialog id="d2" title="Assistance" type="yesNo" dialogListener="#{backingBeanScope.dialogBackingBean.mustClosePreviousAddress}">
                      <af:outputText value="Do you want to close the previous adress automatically ? " id="ot1"/>
                    </af:dialog>
                  </af:popup>
                </af:group>
              </f:facet>
            </af:panelFormLayout>
          </af:form>
        </af:document>By reading in your forum I find this solution to be able to initiate a popup and execute the commandButton action by adding the triggerType="click" on the showPopupBehavior.
    The issue then is that the dialog get closed without waiting for a user response on the popup dialog (yes/no)
    Solution 3: Adding aAdfFacesContext.getCurrentInstance().returnFromDialog(null, null); in my dialog listener
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <af:inputDate value="#{bindings.Datedeb.inputValue}" label="From:" required="#{bindings.Datedeb.hints.mandatory}" shortDesc="#{bindings.Datedeb.hints.tooltip}" id="id2">
                <f:validator binding="#{bindings.Datedeb.validator}"/>
                <af:convertDateTime pattern="#{bindings.Datedeb.format}"/>
              </af:inputDate>
           <!-- ... -->
              <f:facet name="footer">
                <af:group id="g1">
                  <af:commandButton text="Submit" id="cb1">
                    <af:showPopupBehavior popupId="p1" triggerType="click" />
                  </af:commandButton>
                  <af:popup id="p1">
                    <af:dialog id="d2" title="Assistance" type="yesNo" dialogListener="#{backingBeanScope.dialogBackingBean.mustClosePreviousAddress}">
                      <af:outputText value="Do you want to close the previous adress automatically ? " id="ot1"/>
                    </af:dialog>
                  </af:popup>
                </af:group>
              </f:facet>
            </af:panelFormLayout>
          </af:form>
        </af:document>
      public void mustClosePreviousAddress(DialogEvent dialogEvent)
        //Business logic
        AdfFacesContext.getCurrentInstance().returnFromDialog(null, null);
      }It looks like it work and close the dialog when click on yes/no on the popup dialog but the value are not submitted and the data model do not change.
    Solution 4: Sendind an ActionEvent on the button when user has made his selection
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <af:inputDate value="#{bindings.Datedeb.inputValue}" label="From:" required="#{bindings.Datedeb.hints.mandatory}" shortDesc="#{bindings.Datedeb.hints.tooltip}" id="id2">
                <f:validator binding="#{bindings.Datedeb.validator}"/>
                <af:convertDateTime pattern="#{bindings.Datedeb.format}"/>
              </af:inputDate>
           <!-- ... -->
              <f:facet name="footer">
                <af:group id="g1">
                  <af:commandButton text="Submit" id="cb1" binding="#{backingBeanScope.dialogBackingBean.cb1}">
                    <af:showPopupBehavior popupId="p1" />
                    <af:returnActionListener/>
                  </af:commandButton>
                  <af:popup id="p1">
                    <af:dialog id="d2" title="Assistance" type="yesNo" dialogListener="#{backingBeanScope.dialogBackingBean.mustClosePreviousAddress}">
                      <af:outputText value="Do you want to close the previous adress automatically ? " id="ot1"/>
                    </af:dialog>
                  </af:popup>
                </af:group>
              </f:facet>
            </af:panelFormLayout>
          </af:form>
        </af:document>
      public void mustClosePreviousAddress(DialogEvent dialogEvent)
        //Business logic
        cb1.queueEvent(new ActionEvent(cb1));
      }The same as foor the third solution, it looks like it work and close the dialog when click on yes/no on the popup dialog but the value are not submitted and the data model do not change.
    I've verified with an actionListener, the actionEvent received when the user click on the button is exactly the same as the one i've dispatched manually.
    Can you help me with a solution adressing this issue?
    Best regards,
    Alex

    Mmm something like this ?
        public void newDialogListener(DialogEvent dialogEvent) {
            if (dialogEvent.getOutcome().name().equals("ok")) {
                this.getBindings().getOperationBinding("Commit").execute();
                    // Do something
        }

  • Cancel / Reset links in popup dialog

    Hi, I'm new to ADF 11g (using Jdeveloper 11.1.1.4.0) so this is probably an easy question. I have a popup dialog (using <af:popup>, <af:dialog>), and in the dialog, I want to have Cancel and Reset links. I know that if I set the type attribute of <af:dialog> to "cancel", I could get a Cancel button for free. But I want to have a Cancel link instead of a button so I have the type attribute of <af:dialog> set to "none" to not show any of the default buttons. How could I best implement a Cancel link as a commandLink or goLink? The documentation for <af:dialog> at http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_dialog.html says this about the cancel button behavior and I just want to have the same for my Cancel link:
    The ESC key, "cancel" button and close icon queues a client dialog event with a "cancel" outcome. Dialog events with a "cancel" outcome will not be sent to the server.
    Also, I want to have a Reset link in my dialog that just resets the form fields in the dialog. How would this be done? I saw that there's a <af:resetButton> component available, but this renders as a button and again I want to have a Reset link instead of a button.
    Thanks.

    Ok, this worked for me:
    <af:resource type="javascript">
    function closePopup(actionEvent) {
    var eventSource = actionEvent.getSource();
    var popup = eventSource.findComponent("p1"); // p1 is the id of my popup
    popup.hide();
    actionEvent.cancel();
    </af:resource>
    <af:commandLink text="Cancel" id="cl1" partialSubmit="true">
    <af:clientListener type="click" method="closePopup"/>
    </af:commandLink>
    Interestingly, I found that if I did not have partialSubmit="true" on the commandLink, then the popup would disappear on its own. I did not even have to have a clientListener on the commandLink. I guess this is due to the following mentioned at http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_dialog.html
    Using partial submit custom buttons is recommended because by default, a popup will not restore visibility after a full postback. The immediate parent (af:popup) controls this behavior. If the parent popup's autoCancel property is enabled, full submit commands will cause the popup dialog to auto-dismiss. When the autoCancel property is disabled, full submit commands will restore visibility on postback. See the af:popup tag documentation for more information on controlling aspects of auto-dismissal.
    Does anyone know what the difference between using popup.hide() and popup.cancel() would be in the above javascript? They seem to have the same effect. Also, do I really need to have actionEvent.cancel() in the above javascript? I have seen that in some other examples, but not really sure if it's really necessary as having it there or not there doesn't seem to make a difference either.

Maybe you are looking for

  • Need to add default columns to a CrossTab

    Post Author: ViBaldi CA Forum: Crystal Reports Just wondering if anyone has any ideas, as I have run out... I have a summary report that queries an SQL view and contains a CrossTab. The selection criteria is filtered by 4 selectable parameter fields:

  • Fonts used in .ai

    Hi, I work for a start-up company in the localization function, and just encountered the issue related to the font files that are used in the artwork file created by Illustrator. In my previous work environment, all the fonts used in a particular art

  • How can I find sent photos from IPHoto?

    There doesn't seem to be a way to see what photos I sent to whom on IPhoto. I sent a photo today to someone but I can't find it anywhere. This is not a good thing.  Does anyone know how to find these emails that were sent? Thanks.

  • App Store not responding (Mountain Lion)

    Hi everyone, I'm having trouble with App Store after reformatting my MBP hard drive and restoring everything from a backup. App Store is unresponsive from launch; as soon as I open it, it goes to a spinning beachball, and Finder identifies it as "not

  • Running debug on Device

    Flash Builder 4.5.1 Standard Windows 7 Ultimate & Home Premium Latest AIR 2.7.0.19530 on all devices Viewsonic GTablet, Android 2.3.3 Gingerbread Been developing an app for quite awhile and running the app on my tablet with no issues.  Then last week