onexit not called in parent window after child window was opened by target 
attribute
------------------------------------------------------------------------------------

                 Key: TOBAGO-432
                 URL: https://issues.apache.org/jira/browse/TOBAGO-432
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.11
         Environment: All
            Reporter: Helmut Swaczinna
            Priority: Minor


In my page a have a link with an target attribute which opens a new child 
window. Then I close the child
window and then I close the parent window. But the onexit handler of the 
parent window is not called.
When I close the parent window without having opened the child window the 
onexit handler is called.
You can see this when you define an onexit and an onunload handler. Closing 
the parent window after a
child window has been openend by a target attribute calls the onunload 
handler and not the onexit handler.
I've examined the code of Tobago.submitAction. There's a flag isSubmit to 
distinguish between onunload
and onexit. This flag is not set in the code when the target parameter is 
set. This is correct. But when you
examine this flag when the window is closed after the child window was 
closed it is set to true what's not correct.
So I don't know where exactly the problem is.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to