Close Popup on clicking OK button of Information Message Dialog

JDev 11.1.1.5.0 ADF BC
I have a popup and a dialog inside it where user inputs some data and clicks Save button.
I am showing an Information message on click of Save on successful insertion of data into the database.
What I am looking to achieve is that I want to close the popup window on click of the OK button which is inside the information message dialog that is been shown on successful Saving of data.
There is already a similar thread Close popup in adf but that doesn't have a correct answer.

1) Bind the main popup to a bean variable:
<af:popup id="mainPopup" binding="#{MyBean.myPopup}" ...>
public class MyBean
  private RichPopup myPopup;
}2) Add a DialogListener to the <af:dialog> of the information message:
<af:popup id="infoPopup">
  <af:dialog dialogListener="#{MyBean.infoPopupDialogListener}">
    ... Info message here ...
  </af:dialog>
</af:popup>3) Use this DialogListener to close the main popup programatically:
  public void infoPopupDialogListener(DialogEvent dialogEvent) {
    myPopup.hide();
}Dimitar

Similar Messages

  • Can no longer close tabs by clicking wheel button in FF-4

    I have a basic optical mouse and extension Tab Mix Plus. I was always able to close the tab that I was in (anywhere within the page) by clicking the center wheel button. This was very convenient. I can close the tab by putting the mouse pointer on the tab bar and clicking the center wheel - but not as convenient as I have to make sure I'm on the open tab bar.

    Does pressing that wheel work otherwise like opening a link in a new tab or starting auto scroll?
    *Tools > Options > Advanced > General: Browsing: "Use autoscrolling"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Popup screen with information message in POWL

    Hi all,
          I have a scenario like after clicking on action in Powl,  the popup screen should be opened with information message with OK button.kindly suggest on this.
    Thanks all

    You could also try the approach mentioned in the forum thread:
    How to use Javascript in template
    Thanks,
    Navaneeth

  • JOptionPane's message dialog over JDialog not recognizing mouse click

    I have a JOptionPane's message dialog like JOptionPane.showMessageDialog() which comes over a JDialog. When I try to click the OK button of this message dialog, nothing is happening. But, Enter key and Escape keys are working on it.
    Can any one give a solution?

    Hi,
    here are the steps how it goes.
    Step 1:
    private void generateMessageDialog(
            String message,
            int messageType,
            String messageTypeText,
            Component parentFrame)
            JOptionPane optionPane = new JOptionPane();
            optionPane.setMessage(message);
            optionPane.setMessageType(messageType);
            JDialog dialog = optionPane.createDialog(parentFrame, 
    messageTypeText);
            dialog.show();
    }If an exception occurs while connecting to my server, this method will be called to generate an error dialog.
    I have another thread which monitors the connection to server every 2500 ms. If the connection is lost, this thread will automatically generates a logon dialog. This dialog is a custom dialog that contains login fields.
    Step 2:
    public void run()
            int previousState = -1;
            while(previousState != CErrorCodes.SESSION_INVALID && previousState != CErrorCodes.NO_CONNECTION_TO_SERVER)
                int currentState = isConnected();
                // Check if a logoff action is pending
                if (currentState == CErrorCodes.REQUEST_SUCCEEDED)
                    if (getClientController().isLogOffPending())
                        break;
                previousState = currentState;
                try
                    sleep(2500);
                catch (InterruptedException e)
                    break;
    // generate the logon  dialog
            getClientController().getLogOnDialog();
    }If step 2 is executed before step 1, then the dialog generated by step 1 will come over the logon dialog generated by step 2. In this case, the ok button of the dialog generated in step 1 will not recognize mouse click. but enter or escape works. Both the dialogs are modal.
    Please let me know if you need furthur info. I look forward for your rep.
    Edited by: MallikMajety on Nov 8, 2007 6:02 AM

  • dvt:hierarchyViewer make error popup close without clicking ok button

    Hi All,
    I am using Jdev 11.1.1.3.0
    In my page I have 2 region, one contains a form which built from a EO Based VO and a commit button. Another region have a <dvt:hierarchyViewer> which is built from another VO to display some hierarchy diagram.
    In my page user can edit some information and commit the transaction by clicking the commit button.
    Whenever there is some validation fail in the model layer for the information that user edit, I will use below code:
    throw new JboException(error_message);
    which ADF will handle it as a popup with the error message and display on the UI.
    So now the issue is, whenever I click commit button, region that contains <dvt:hierarchyViewer> will shows as "Fetching Data...", and if there is anything failed for this transaction, error popup will appear. However, the popup will not stay and it will disappear even without user clicking ok button whenever <dvt:hierarchyViewer> finish fetching data and display the content. So this is a problem because error message will only display 1 second then it will disappear, user cannot even see what is the error.
    If I set render property of <dvt:hierarchyViewer> to be false, now if there is error, the popup will stay there until user click ok button to close it. So the issue definitely related to <dvt:hierarchyViewer>.
    My question will be why rendering <dvt:hierarchyViewer> will impact the error popup and make it disappear? And based on my observation, the issue only happen on IE but not on firefox.
    Hope anyone can help me with this issue.
    Thanks.
    Pei
    Edited by: user10867484 on Jun 16, 2011 5:25 PM

    Hi,
    So the issue definitely related to <dvt:hierarchyViewer>
    Your observation is correct, the conclusion you take out of this not. The hierarchy viewer fetches data asynchronously and at the end refreshes the component, which takes the focus out of the dialog into the page. The default behavior of the popup component is to dismiss when the focus is lost. The options to try and handle this are
    1. make sure the commit button has "partialSubmit=true" set so it does not refresh the page and thus the hierarchy viewer as a whole
    2. configure the af:messages component to show error messages inline and not as a popup
    I would go and try 1 first
    Frank

  • How to close the detach popup on click of a button in the panel collection

    Hi,
    I'm using Jdeveloper 11.1.2.3.0.
    I have an af table surrounded by panel collection. There is a button on panel collection to commit the changes in the table.
    Clicked detach button to view the table in full browser.
    On click of Commit button, the detach popup is not closed. I have set partialSubmit of that button to false. Then also detach popup is not closed.
    Can anybody suggest me how to close the detach popup on click of a button in the toolbar.
    Thanks,
    Vinod

    Hi Frank,
    Thanks for your response. Popup is not closed.
    I tried this approach, when the view tree is navigated on the Detach, I see that the tree is same as if it is traversed on the page without detach.
    Printed client id and UI component class in the while loop, result is as below.
    r1:0:pc1:t3 class oracle.adf.view.rich.component.rich.layout.RichToolbar
    r1:0:pc1 class oracle.adf.view.rich.component.rich.output.RichPanelCollection
    r1:0:ph2 class oracle.adf.view.rich.component.rich.layout.RichPanelHeader
    r1:0:pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    r1 class oracle.adf.view.rich.component.rich.fragment.RichRegion
    pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    db2 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    db1 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    psl1 class oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout
    ps1 class oracle.adf.view.rich.component.rich.layout.RichPanelSplitter
    f1 class oracle.adf.view.rich.component.rich.RichForm
    Tried with setting partialsubmit property to false on the command button, still the popup is not closed and my Faces Message are shown behind the detach popup.
    Thanks,
    Vinod

  • How to run a subVI without poping up normally, but when clicking a button, popup the front panel?

    I know pop-up the front panel of a subVi when called by selecting VI Properties>>Windows apperence.
    But what I need to do is: always run the SubVI inside the parent VI as the nornal subVI do without poping up. But when I click a button"show front panel", the SubVI popup the front panel.
    Is there anyway to do this?
    Thanks,

    ossoo,
             You can use a static VI reference to the subVI and then use the Front Panel Open invoke method to show the front panel when you want. I have attached two VIs that show this. I saved these VIs for LabVIEW 2009 so you should be able to open them up and run them in 2009 or later. Add.VI is the subVI that you are calling. The Caller.VI is just a While Loop that contiually calls the Add subVI. Inside of the While Loop is also a Case Structure with a Static VI Reference (you might need to change the path this is pointing to after downloading the VIs to your computer for this to work) and the Front Panel Open invoke method. You can run the Caller.VI and interact with the main Front Panel as normal and see the subVI but then you can click the Open subVI? boolean button and it will open the subVI's front panel. You can continue to interact with the main front panel and see the values update on the subVI's front panel as well. You can just close the subVI's front panel when you are done viewing it. Does this help?
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    Caller.vi ‏19 KB
    Add.vi ‏23 KB

  • Skillbuilder Modal popup turns black when click submit button

    Hi,
    Ive used the great skill-builder's plug-in to display my page 2 popup modally from page1 by clicking a button and it works as expected. However i realized when i click the Submit button on the popup page it turns black(pls get me right here its the background of the popup page-page2 not the first page-page1 i am talking about) while refreshing.
    apex 4.1.0/Oracle 11g Ent,
    any help please...regards.

    Skillbuilder Modal uses software named "Colorbox" for its modal presentation. The first problem that you had probably occured because you had not yet selected a theme. The position of the close button varies depending on the theme that you select. You selected theme 1, therefore the close button is in the lower right hand corner. Some of the other themes may better suit your taste. There are 5 to choose from. BTW, these themes cannot be easily changed so you pretty much have to decide on 1 of the 5. I think Dan is working on some more options with future releases of SB Modal.

  • Unable to close open apps with double clicking the button and when I tap screen does not respond?

    Cannot not close open apps with double clicking the button Since downloading iOS8.

    What happens when you try? Does double clicking the ?home button bring up the Task Bar of recently used apps? If so what happens when you flick up on the preview screen for the app you want to close?
    To quit an app double click the Home button to reveal the row of recently used apps. Flick up on the page preview and it will fly away and disappear. That quits the app.

  • On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373

  • After upgrading ipad to iOS 7.1 I can no longer close open apps by double clicking home button. Any other way to close open apps?

    After upgrading ipad to iOS 7.1 I can no longer close open apps by double clicking home button.  Any ideas

    Double-tap on the Home button. You will see a preview of the app above the actual icon. Slide the preview up to kill it.
    Please get the iPhone User Guide (For iOS 7 Software)Sep 19, 2013 - 23 MB.

  • HT201365 How do you close Apps in iOS 7? It doesn't work by double clicking power button.

    How do you close Apps in iOS 7? It doesn't work by double clicking power button.

    Double tap the Home button, then swipe upwards on the App Preview (not the App Icon)

  • How to display a window in clicking a button in abap web dynpro(popup wind)

    Hi i am using a button 'click'  in view1 ,
    if i click the button then a new window should be popup.

    Hi
    You ca use this function to Create a new window..
      CALL METHOD wd_window->create_window
          EXPORTING
            modal             = abap_true
            window_name       = 'MMPUR_CPPR_RFQ_WDW'
            title             = lv_otr_text
            close_button      = abap_true
            button_kind       = 3
            close_in_any_case = abap_true
          RECEIVING
            window            = wd_comp_controller->window.
        wd_comp_controller->window->open( ).
    here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
        CALL METHOD wd_comp_controller->window->subscribe_to_button_event
          EXPORTING
            button            = if_wd_window=>co_button_ok
            action_name       = 'RFQ_WT_VENDOR'
            action_view       = l_api
            is_default_button = abap_false
            button_text       = lv_otr_text
            tooltip           = lv_otr_text.
        wd_comp_controller->window->open( ).
    Please let me know if you have any issue. Please reword if its solve your problem.
    Regards
    Satrajit

  • Close popup data input window once CREATE button pressed?

    Hello,
    I have a data input form opened as a popup, it contains 2 buttons (CANCEL & CREATE). The cancel button just uses the javascript:window.close(); command and works fine. The CREATE button creates the record correctly but when it tries to close (using a branch with the same javascript command as the create button), it fails and I get the following:
    The window doesn't close.
    It gives me the error: Cannot find server. The page cannot be displayed.
    Does anyone know how I can close the popup form after a new record has been successfully created.
    Many thanks
    Sue

    Hi
    I think it does not work because you cannot close and submit a page at the same time. One idea is to create an empty page, and add this code to the Page HTML body attribute:
    onload=window.close();
    Then make the popup page branch to this page after submit...
    I hope this helps.
    Luis

  • Hello, I have updated my iphone4s to iOS7 and now I cannot close any of my apps - I double click on button and they show but when I press hand hold the icons do not shake so i can delete them

    Hello, I have updated my iphone4s to iOS7 and now I cannot close any of my apps - I double click on button and they show but when I press hand hold the icons do not shake so i can not delete them

    You don't press and hold them. Just swipe up.

Maybe you are looking for

  • Where can I buy a touch screen digitizer for hp?

    Hi I have hp laptop with following properties: Natural Silver 15.6" ENVY TouchSmart 15-j023cl Laptop PC with AMD Elite Quad-Core A10-5750M Accelerated Processor, 8GB Memory, Touchscren, 1TB Hard Drive and Windows 8. Recently, my touch screen digitize

  • How to add a second Hard Drive to a laptop equipped with 2 HDD bays.

    I have noticed a couple of posts on the forums that have asked how to install a second HDD into their laptop. Here is a link to a detailed video on how to install the 2nd HDD. This video will show how to install the hard drive, what parts that you wi

  • SAP Service Ticket: Use of due date and traffic light

    Presently our company is not doing much with the traffic light and due date when managing our tickets from the inbox.  If there is someone making use of these, I would like to know what are some your your Best Practices. Ideally we would like to use

  • Calculated paper bar codes

    I have several adobe forms that need to transform a field that the user populates into a barcode. I can create the form using the barcodes and it works fine in Adobe pro. However not in Reader. I have been told I need Reader Extensions, but the sales

  • Iphone 5 when will be unlock

    When i can buy it unlock