JDialog dispose() not firing windowClosing()/windowClosed() event

I have a small dialog that has 'OK' and 'CANCEL' buttons. When the user clicks on the 'X' in the top right hand corner to close the window, the windowClosing() event is fired on all listeners. However, calling dipose() when i click on the 'OK' or 'Cancel' buttons does not fire the event. I am sure this should work without a problem but i just cannot see what is going wrong.
Andrew

I'd have to test this, but there's some sort of logic to think that calling hide or dispose would not generate events. What would be the point? You know it's going to be closed, so you should tell anyone who needs to know. You can get the list of listeners and fire your own event if you wanted.
Window.dispose() does fire a window closed event, though.
If you want to simulate closing... This is from code I had written... some of it you can replace as appropriate (isJFrame(), etc).
      * Closes the window based on the window's default close operation. 
      * The reason for this method is, instead of just making the window
      * invisible or disposing it, to rely on either the default close
      * operation (for JFrames or JDialogs) or rely on the window's other
      * listeners to do whatever the application should do on the "window
      * closing" event. 
     private void doClose() {
          int closeOp = getDefaultCloseOperation();
          // send the window listeners a "window closing" event... 
          WindowEvent we = new WindowEvent(getWindow(), WindowEvent.WINDOW_CLOSING, null, 0, 0);
          WindowListener[] wl = getWindow().getWindowListeners();
          for(int i = 0; i < wl.length; i++) {
               // this handler doesn't need to know...
               if(wl[i] == this) {
                    continue;
               wl.windowClosing(we);
          // if still visible, make it not (maybe)...
          if(getWindow().isVisible()) {
               switch(closeOp) {
                    case WindowConstants.HIDE_ON_CLOSE:
                         getWindow().setVisible(false);
                         break;
                    case JFrame.EXIT_ON_CLOSE:
                    case WindowConstants.DISPOSE_ON_CLOSE:
                         getWindow().setVisible(false);
                         getWindow().dispose();
                         break;
                    case WindowConstants.DO_NOTHING_ON_CLOSE:
                    default:
     * Gets the default close operation of the frame or dialog.
     * @return the default close operation
     public int getDefaultCloseOperation() {
          if(isJFrame()) {
               return ((JFrame)getWindow()).getDefaultCloseOperation();
          if(isJDialog()) {
               return ((JDialog)getWindow()).getDefaultCloseOperation();
          // "do nothing" is, for all intents and purposes, the way AWT
          // Frame and Dialog work.
          return WindowConstants.DO_NOTHING_ON_CLOSE;

Similar Messages

  • JFrame.dispose not firing the windowsClosing event

    No this one is not quite like the question a few posts down, well not exactly anyway.
    I have a JFrame with a windowAdapter that handles my closing tasks, it works just fine currently as long as the close button on the frame is clicked. I had to add a check in the program that should close the window if its true.
    So I have code that checks a condition and if its true it shuts down all threads and trys to exit gracefully through the windowClosing event. As other posts have said I can use the jframe.dispose followed by System.exit and it works fine seeing that in the code thoughmakes me think its a kludge since dispose doesn't trigger the windowClosing event. I would like to somehow simulate clicking the close button on the frame when I need to exit because of an error but I'm not sure how to programatically do that.
    My current window close operation is set to DO_NOTHING_ON_CLOSE so that the windowClosing event can handle the closing, I tried setting the operation to EXIT_ON_CLOSE then disposing the frame when the error occured but that didn't trigger the windowsClosing event either.
    Any ideas?
    Thanks,
    Eudaemon.

    okay... So do something like this:
    private void init() { // or whatever...
       frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
             quit();
       quitmenuitem.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent.) {
             quit();
    public void quit() {
       // do whatever cleanup or checks or whatever...
       frame.dispose();
    }

  • Kinect is not firing MultiSourceFrameArrived event after some time

    Hi,
    I am using Kinect v2 with EmguCV in my application. I am performing some image processing task on the acquired frame. I noticed that after some time (1-2 minutes) the Kinect is not firing MultiSourceFrameArrived event.
    Below is the snippet of the code-
    public partial class KinectForm : Form
    KinectSensor kinect;
    MultiSourceFrameReader reader;
    CoordinateMapper coordinateMapper;
    public KinectForm()
    kinect = KinectSensor.GetDefault();// Get the connected kinect Sensor
    coordinateMapper = this.kinect.CoordinateMapper;
    reader = kinect.OpenMultiSourceFrameReader(FrameSourceTypes.Color | FrameSourceTypes.Depth);
    kinect.Open();// Start reading the data from kinect
    InitializeComponent();
    private void FrameArrivedDisplayMode(object sender, MultiSourceFrameArrivedEventArgs e)
    var reference = e.FrameReference.AcquireFrame(); // Get a reference to the arrived frame
    ColorFrame colorFrame = reference.ColorFrameReference.AcquireFrame(); // Access color frame
    DepthFrame depthFrame = reference.DepthFrameReference.AcquireFrame(); // Access depth frame
    if (colorFrame != null && depthFrame != null)// Do not proceed, if any frame is expired
    RenderColorPixels(colorFrame);
    RenderDepthPixels(depthFrame);
    // Lots of image processing is being performed here
    if (colorFrame != null) colorFrame.Dispose();
    if (depthFrame != null) depthFrame.Dispose();
    private void KinectForm_FormClosing(object sender, FormClosingEventArgs e)
    if (this.reader != null)
    this.reader.Dispose();
    this.reader = null;
    if (this.kinect != null)
    this.kinect.Close();
    this.kinect = null;
    private void displayModeRadioButton_CheckedChanged(object sender, EventArgs e)
    if (displayModeRadioButton.Checked)
    reader.MultiSourceFrameArrived += FrameArrivedDisplayMode;
    else
    reader.MultiSourceFrameArrived -= FrameArrivedDisplayMode;
    The above code was working earlier, but later on once I added more processing on the data, the event was not fired at all after some point of time.
    I am disposing the frame every time. Why this is happening? How to fix this problem?
    Thanks

    Carmine, Thanks a lot for prodding the references. I am in the process of designing it.
    Meanwhile, since as you said the above code was holding the frame data and disposing the frame after processing it, so I though of changing the style little bit. Please see the code below-
    private void FrameArrivedDisplayMode(object sender, MultiSourceFrameArrivedEventArgs e)
    var reference = e.FrameReference.AcquireFrame(); // Get a reference to the arrived frame
    ColorFrame colorFrame = reference.ColorFrameReference.AcquireFrame(); // Access color frame
    DepthFrame depthFrame = reference.DepthFrameReference.AcquireFrame(); // Access depth frame
    if (colorFrame != null && depthFrame != null) // Do not proceed, if any frame is expired
    ColorFrame.CopyConvertedFrameDataToArray(ColorFramePixels, ColorImageFormat.Bgra);
    depthFrame.CopyFrameDataToArray(DepthFrameData);
    colorFrame.Dispose();
    depthFrame.Dispose();
    //Here I am doing image processing
    Now, this way I am not using some of the frames but it should work, since the frame is disposed earlier.
    But still after some time, the event is not fired out.
    Why? Can you tell me the reason?
    Thanks
    Ravi

  • OnRowUpdating Event not firing in my DataGrid in custom web part in my production SharePoint 2013 Foundation instance

    Hi,
    I have a custom visual web part that I've developed for SharePoint 2013 Foundation.  I am using Visual Studio 2013 to develop this web part. 
    In my visual web part I have GridView that I use to update data in a SQL 2008 R@ Server Database.  In dev and test the OnRowUpdatingEvent fires properly, but in production it does not.  I have the same version of SharePoint running on dev/test/prod. 
    The main difference between the three environments is the hardware.  Production has a much beefier sever than dev and test.  Dev and test are also virtual machines where production is.
    At first I thought my problem was cache related, and I made adjustments per this article:
    http://www.dmcinfo.com/latest-thinking/blog/id/8657/fix-sharepoint-2013-distributed-cache-timeouts
    That didn't help because the event is still not firing.  I took my test application and pointed it to the production database, and that event still fires in test but not in production. So I believe that eliminates database permission errors since I'm
    using the same credentials in both instances.
    My guess is that I need to change some settings in the production environment, but I'm not sure at this point what that might be.
    Any suggestions on what settings to look at?
    Brian
    Brian Hochgurtel
    My blog

    Try this solution :
    http://stackoverflow.com/questions/5893373/c-sharp-rowupdating-method-not-called-when-update-is-clicked-in-a-gridview

  • Sharepoint 2013 document library incoming email without attachment not firing event and not getting email

    sharepoint document library incoming email without attachment not firing event and not getting email
    If email contains attachment it works. Is there any setting in document library that will allow emails and eventhandler to fire with out attachment?
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    What is the purpose of email sent to document library if no attachment. What document library will do what that email if it cant find attachment to save and create a spdoc object. If you want to store email/communication body then opt for site mailbox
    app.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • CS Extension, Script UI and events not firing in Photoshop CS5

    Hi!
    I'm a bit confused with two technologies dealing with SWF panels. There was a technique in the previous versions of Photoshop when SWF content has been loaded into a ScriptUI Window. Is it changed? Or does it still work together with CS Extension extensions?
    I have a script that creates ScriptUI Window and then loads an SWF into it. It has a custom 'mousemove' event listener that helped to move this window around the screen. Now - in the new Photoshop CS5 (I tried 12.0.1 as well) - it seems like the 'mousemove' event is not fired for ScriptUI windows containing SWFs.
    I'm not sure, maybe it has something to do with the new SWF treament in CS5?
    If I'm wrong, then I'm sorry, if this question doesn't fall into this forum's area of expertise.
    Thank you!

    10x,
    You saved my ***!
    It actually has to include both the PHSP "AND" the PHXS host names for it to work - this is stupid!
    If I only use PHXS the extension manager is not able to install the extension, saying it cannot find a host that matches the manifest (even though my photoshop IS the extended variation, so in a sense it's more acurate manifest-wise), and if I only use the PHSP, it IS loaded but doesn't appear in the application!
    AND THERE IS NO DOCUMENTATION ON THIS PHENOMENON ANYWHERE!
    THIS IS BEYOND IRRESPONSIBLE!
    Thank you very much david, but please, as you are an adobe employee, get this message to the right people, if you can.
    I know the corporate agenda would probabely be the incentivise people to register to the 1500$ program to get the extension-builder, by keeping the alternative inconvenient, but this issue is beyond inconvenient, it's border-line cruelty!

  • Event.deactivate is not firing with flash plugin 10,2,152,26 embeded in IE 8 and above

    I am working on a portal which is built in flex. I wanted to perform some action based on my applications is in focus or out of focus. So  I tried to use two Events for this purpose Event.Activate and Event.Deactivate inside my flex code.
    These events fire perfectly in FF 3.0 and above, Safari, Chrome and these events get triggered till IE 7.
    But when I switch to IE 8 and above versions with latest flash player plugin 10,2,152,26 the Event.deactivate is not firing, and I am not able to detect whether my Flex application is out of focus.
    I tried doing some research around this issue both using Flex Events and Javascript approach using window.onfocusin and window.onfocusout, but still no luck in IE 8 and higher versions with latest Flash plugin 10,2,152,26.
    Has someone faced this kind of issue. Any help or solution to this problem would be appreciated. As we have a large number of users viewing this portal in IE 8 with latest flash plugin.
    The code is simple and I have pasted below:
    package {
      import flash.display.*;
      import flash.utils.*;
      import flash.events.*;
      public class Main extends Sprite {
        public function Main() {
          this.addEventListener(Event.ACTIVATE, activateListener);
          this.addEventListener(Event.DEACTIVATE, deactivateListener);

    this is a known issue (or, really a collection of issues) related to how the deactivate event works in different browsers.  check colin moock's blog.
    for most, but not all, purposes using a mouseleave event works well-enough.

  • PlEASE HELP EASY QUESTION: unload event is not firing at all.

    Hi, onUnload event is not firing in Safari browser. I tried with different ways to capture that event but i failed to capture that event. So please help me on this, give suggestions to capture that event. Or any other event is firing when window is closing. Actually, i need to execute when window is closing. But in Safari the window is closing without firing of any events.

    Safari doesn't execute the unLoad action when closing windows, period!
    It only executes it when loading another page.
    I might be wrong but I think Safari doesn't allow you to close a window with Javascript at all. All close events are blocked.
    Maybe a SWF file can do it somehow. But I'm not sure...

  • WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help

    Hi Grant,
    WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help..
    I need a help from you.
    1) I have developed an form to browse the client machine and upload the file on server / table
    2) Registered the form in Oracle Apps 11.5.10.
    3) Currently i am able to open the File_Dialog and browse throught the clients machine
    But when ever user selects any file and says Open, i am not able to retrieve the file name. wHEN-CUSTOM-ITEM-EVENT is not
    firing. I am sure how we can invoke this CUSTOM-ITEM-EVENT.
    To devlop the form i have referred PERWSIMG.fmb - of Oracle (Apps) HRMS which uploads the employee photo in the Database.
    Hence i have used the same java code / Implementaion Class.
    Please help...
    Regards
    Sameer

    Hi Francois,
    You were right. I re-loaded the zip file and the original version works. Odd, as I don't remember ever modifying those files.
    But my original issue still remains.
    The only code I've added is this:
    Color mycolor = this.getBackground() ;
    setBackground(mycolor);to the CalendarFrame constructor. How could this be causing the trigger to not fire?
    Could it be the way I created the bean? I copied all the java files to my project, attached the libraries, created a deployment profile. Everything compiles without errors or warnings, and the jar is created without issues. The java console doesn't give any errors either.
    Thanks for all your help,
    A
    Edited by: Abigail Parmar on Mar 26, 2009 1:01 PM

  • JSC on Tomcat 5.5.20 - Session/Applicaton Bean events not firing

    Hi,
    I am running a JSC app on Tomcat 5.5.20.
    Session and application bean events init and destroy are not firing.
    they work fine on my development machine using the Sun App server..
    Anyone have any ideas?
    Thanks
    Colin

    Hi,
    This is actually a Tomcat bug that was introduced from versions 5.5.20 and higher.
    If you create your application in a path that contains spaces you will encounter this problem.
    The workaround is to create your application at a path with no spaces.
    Here's the bug on Tomcat's website:
    http://www.mail-archive.com/[email protected]/msg37222.html
    It should be fixed in Tomcat 5.5.24
    You won't even need to create a listener or add any jar files.
    Hope this helps
    Yousuf

  • ItemPressed Event ActionSuccess=True is not firing

    Hi,
       I have written code in one of my addons to Capture the ActionSuccess=True part of the ItemPressed event of the "Add" button on the Delivery Note window. This event works perfectly fine when I launch the window from the "Delivery" menu item under Sales A/R.
    However, I cannot this event does not fire when the Delivery note is launched from the "Pick and PAck manager" under the Inventory menu.
    If pVal.ItemUID = "1" And pVal.ActionSuccess = True And pVal.BeforeAction = False Then
    ' DO some ACTION
    End if
    I would appreciate it if you could provide some ideas on whether this a know SAP issue or provide some ideas on how I can fix this issue.
    Thanks,
    Gopal

    The FormDataEvent solved my problem in both cases since I only was interested in doing an action after the delivery was updated/added.
    Se VB6-code below to implement this event :
    (Events filters added when the addon starts.. :
        Set oFilter = oFilters.Add(et_FORM_DATA_ADD)
        oFilter.Add 140 'Delivery
        Set oFilter = oFilters.Add(et_FORM_DATA_UPDATE)
        oFilter.Add 140 'Delivery
    Private Sub m_conApp_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean)
    On Error GoTo ERROR_HANDLER
        If (BusinessObjectInfo.BeforeAction = True) Then 'Before Event
        'Do something
        Else 'After event
            Dim Form As SAPbouiCOM.Form
            Set Form = m_conApp.Forms.Item(BusinessObjectInfo.FormUID)
            Dim bisObj As SAPbouiCOM.BusinessObject
            Set bisObj = Form.BusinessObject
            Dim uid As String
            uid = bisObj.Key
            If (BusinessObjectInfo.Type = "15" And (BusinessObjectInfo.EventType = et_FORM_DATA_ADD Or BusinessObjectInfo.EventType = et_FORM_DATA_UPDATE)) Then
               If uid <> "" Then
                Select Case BusinessObjectInfo.Type
                Case 15 ' Delivery document
                    Dim strBpCode As String
                    Dim strDocNum As String
                    Dim strDocEntry As String
                    strDocNum = Trim(Form.DataSources.DBDataSources.Item("ODLN").GetValue("DocNum", 0))
                    strBpCode = Trim(Form.DataSources.DBDataSources.Item("ODLN").GetValue("CardCode", 0))
                    strDocEntry = Trim(Form.DataSources.DBDataSources.Item("ODLN").GetValue("DocEntry", 0))
                    Debug.Print strDocNum + " " + strDocEntry + " " + strBpCode
                    Select Case BusinessObjectInfo.EventType
                        Case et_FORM_DATA_UPDATE
                        'DO SOMETHING AFTER DELIVERY-UPDATE
                    Case et_FORM_DATA_ADD
                        'DO SOMETHING AFTER ADDING DELIVERY
                    End Select
                End Select
               End If
            End If
        End If
    Exit Sub
    ERROR_HANDLER:
        Debug.Print CStr(Err.Number) + " " + CStr(Err.Description)
    End Sub

  • Mouse Drag in JDialog produces Mouse Enter & Mouse Exit events in JFrame.

    Hi, all.
    Do I have a misconception here? When I drag the mouse in a modal JDialog, mouseEntered and mouseExited events are being delivered to JComponents in the parent JFrame that currently happens to be beneath that JDialog. I would not have expected any events to be delivered to any component not in the modal JDialog while that JDialog is displayed.
    I submitted this as a bug many months ago, and have heard nothing back from Sun, nor can I find anything similar to this in BugTraq.
    Here is sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * This class demonstrates what I believe are TWO bugs in Mouse Event handling in Swing
    * 1.1.3_1, 1.1.3_2, 1.1.3_3, and 1.4.0.
    * 1) When a MODAL JDialog is being displayed, and the cursor is DRAGGED from the JDialog
    *    into and across the parent JFrame, Mouse Enter and Mouse Exit events are given to
    *    the parent JFrame and/or it's child components.  It is my belief that NO such events
    *    should be delivered, that modal dialogs should prevent ANY user interaction with any
    *    component NOT in the JDialog.  Am I crazy?
    *    You can reproduce this simply by running the main() method, then dragging the cursor
    *    from the JDialog into and across the JFrame.
    * 2) When a MODAL JDialog is being displayed, and the cursor is DRAGGED across the JDialog,
    *    Mouse Enter and Mouse Exit events are given to the parent JFrame and/or it's child
    *    components.  This is in addition to the problem described above.
    *    You can reproduce this by dismissing the initial JDialog displayed when the main()
    *    method starts up, clicking on the "Perform Action" button in the JFrame, then dragging
    *    the cursor around the displayed JDialog.
    * The Mouse Enter and Mouse Exit events are reported via System.err.
    public class DragTest
        extends JFrame
        public static void main(final String[] p_args)
            new DragTest();
        public DragTest()
            super("JFrame");
            WindowListener l_windowListener = new WindowAdapter() {
                public void windowClosing(final WindowEvent p_evt)
                    DragTest.this.dispose();
                public void windowClosed(final WindowEvent p_evt)
                    System.exit(0);
            MouseListener l_mouseListener = new MouseAdapter() {
                public void mouseEntered(final MouseEvent p_evt)
                    System.err.println(">>> Mouse Entered: " + ((Component)p_evt.getSource()).getName() );
                public void mouseExited(final MouseEvent p_evt)
                    System.err.println(">>> Mouse Exited: " + ((Component)p_evt.getSource()).getName() );
            JPanel l_panel1 = new JPanel();
            l_panel1.setLayout( new BorderLayout(50,50) );
            l_panel1.setName("JFrame Panel");
            l_panel1.addMouseListener(l_mouseListener);
            JButton l_button = null;
            l_button = new JButton("JFrame North Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.NORTH);
            l_button = new JButton("JFrame South Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.SOUTH);
            l_button = new JButton("JFrame East Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.EAST);
            l_button = new JButton("JFrame West Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.WEST);
            l_button = new JButton("JFrame Center Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.CENTER);
            JButton l_actionButton = l_button;
            Container l_contentPane = this.getContentPane();
            l_contentPane.setLayout( new BorderLayout() );
            l_contentPane.add(l_panel1, BorderLayout.NORTH);
            JPanel l_panel2 = new JPanel();
            l_panel2.setName("JDialog Panel");
            l_panel2.addMouseListener(l_mouseListener);
            l_panel2.setLayout( new BorderLayout(50,50) );
            l_panel2.add( new JButton("JDialog North Button"),  BorderLayout.NORTH  );
            l_panel2.add( new JButton("JDialog South Button"),  BorderLayout.SOUTH  );
            l_panel2.add( new JButton("JDialog East Button"),   BorderLayout.EAST   );
            l_panel2.add( new JButton("JDialog West Button"),   BorderLayout.WEST   );
            l_panel2.add( new JButton("JDialog Center Button"), BorderLayout.CENTER );
            final JDialog l_dialog = new JDialog(this, "JDialog", true);
            WindowListener l_windowListener2 = new WindowAdapter() {
                public void windowClosing(WindowEvent p_evt)
                    l_dialog.dispose();
            l_dialog.addWindowListener(l_windowListener2);
            l_dialog.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
            l_dialog.getContentPane().add(l_panel2, BorderLayout.CENTER);
            l_dialog.pack();
            Action l_action = new AbstractAction() {
                { putValue(Action.NAME, "Perform Action (open dialog)"); }
                public void actionPerformed(final ActionEvent p_evt)
                    l_dialog.setVisible(true);
            l_actionButton.setAction(l_action);
            this.addWindowListener(l_windowListener);
            this.pack();
            this.setLocation(100,100);
            this.setVisible(true);
            l_dialog.setVisible(true);
    }(Too bad blank lines are stripped, eh?)
    Thanks in advance for any insights you may be able to provide.
    ---Mark

    I guess we can think of this as one problem. When mouse dragged, JFrame also (Parent) receives events. If i understood correctly, what happens here is, Modal dialog creates its own event pump and Frame will be having its own. See the source code of Dialog's show() method. It uses an interface called Conditional to determine whether to block the events or yield it to parent pump.
    Here is the Conditional code and show method code from java.awt.dialog for reference
    package java.awt;
    * Conditional is used by the EventDispatchThread's message pumps to
    * determine if a given pump should continue to run, or should instead exit
    * and yield control to the parent pump.
    * @version 1.3 02/02/00
    * @author David Mendenhall
    interface Conditional {
        boolean evaluate();
    /////show method
        public void show() {
            if (!isModal()) {
                conditionalShow();
            } else {
                // Set this variable before calling conditionalShow(). That
                // way, if the Dialog is hidden right after being shown, we
                // won't mistakenly block this thread.
                keepBlocking = true;
                if (conditionalShow()) {
                    // We have two mechanisms for blocking: 1. If we're on the
                    // EventDispatchThread, start a new event pump. 2. If we're
                    // on any other thread, call wait() on the treelock.
                    if (Toolkit.getEventQueue().isDispatchThread()) {
                        EventDispatchThread dispatchThread =
                            (EventDispatchThread)Thread.currentThread();
                           * pump events, filter out input events for
                           * component not belong to our modal dialog.
                           * we already disabled other components in native code
                           * but because the event is posted from a different
                           * thread so it's possible that there are some events
                           * for other component already posted in the queue
                           * before we decide do modal show. 
                        dispatchThread.pumpEventsForHierarchy(new Conditional() {
                            public boolean evaluate() {
                                return keepBlocking && windowClosingException == null;
                        }, this);
                    } else {
                        synchronized (getTreeLock()) {
                            while (keepBlocking && windowClosingException == null) {
                                try {
                                    getTreeLock().wait();
                                } catch (InterruptedException e) {
                                    break;
                    if (windowClosingException != null) {
                        windowClosingException.fillInStackTrace();
                        throw windowClosingException;
        }I didn't get exactly what is happening but this may help to think further

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION(R12 UPGRAD

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • On New Instance computation not firing if user fails authorisation

    Hi there,
    In my Apex 4 application I have:
    - An application-level field
    - An On New Instance computation that computes the above field (no conditions or authorisations set on it)
    - A public page
    - A secure page to which the user I use to log in doesn't have access
    If, after logging in, I go straight to the public page and then to the secure page, I get the error "user not authorised" but the application item is computed.
    However, if I go straight to the secure page after logging in the application I get the error message but item is not computed! (I know that because I am displaying the item in the error page template using the format &F_FIELD.)
    I thought On-New-Instance-Anything should always be executed.. but that does not seem to be the case... Or am I missing something?
    How to fix this? I need the on new instance computation to always execute even if the user fails authorisation.
    Thanks
    Luis

    - If I understand you correctly, you are suggesting to move the application computation into the login page, as a page computation?An assignment statement in a PL/SQL process that runs after the login process could work, but it would be safer to use an application-level computation that fires only after APP_USER is definitely set to the authenticated username. The condition would be something like "if :MY_USER_ID_ITEM is null and :APP_USER not in ('nobody', 'HTMLDB_PUBLIC_USER','APEX_PUBLIC_USER','ANONYMOUS')...". Then your application will work if you decide not to have a login page someday, e.g., if you switch to SSO.
    If the computation point is "after submit", why do I need to worry about "per session"? It will be fired only when the user enter/re-enter the system, right?Yes.
    My logout URL was constructed by page wizard. I don't see any session id there. Should I look anywhere specific?If you still have problems with an on-new instance event not firing after a logout URL results in a new session being created let me know. It may be moot for this case.
    Scott

Maybe you are looking for

  • Won't Update! Corrupted File??

    When I plug my iPod into my computer an error message pops up that says it can't be updated because there is a file on my iPod that is corrupted and unreadable. Is there anything i can do? Has anyone else ever had this problem? Please help me out! Th

  • Embedding XML in XML for writing to database

    I am creating a BPEL process in Oracle BPEL Manager 10.1.2.0.2 which will read an XML file using a file adapter, perform some XPath operations on the document to obtain attribute values from its content, then write those values and the document itsel

  • Problem with view based on Object Table

    When I try to create the Invoice view below SQL*Plus returns: "ORA-00904: invalid column name" My view appears to be correct. I doubt 'Expires' is a reserved word since if I NULL it out then the next column('Issued') causes the same error. Any sugges

  • How to get Live wallpapers in Mac OSX?

    I was wondering how could I get live wallpapers for my mac. Is there any safe way becasue normally the computer craches or doesnt work due to those wallpapers downloaded from websites. Isnt there an "Apple" way? Get it? hehe

  • Human Task email notification and IMS

    Hi Chaps, I have a requirement to enable the email notification functionality embedded in Human Tasks. This email functionality presumably emails everyone for that role based on their email information located in Enterprise Manager -> Security -> my