Saturday, January 30, 2010

Problem with window.onWindowClosing

Hi,
I'm in need of managing the windows close or to catch a load action
of the user or acted by the page itself.(My application is integrated
into previously deployed page).
The snipped of my code (initialization part) is something like:


Window.addCloseHandler(new CloseHandler<Window>() {
@Override
public void onClose(CloseEvent<Window> event) {
endManager();
}
});

Window.addWindowClosingHandler(new ClosingHandler() {
@Override
public void onWindowClosing(ClosingEvent event) {
endManager();
}

});

This code works right on IE/FF/Chrome but fails on Opera.
I have already found out this:
http://code.google.com/p/google-web-toolkit/issues/detail?id=611&q=onwindowclosing

Have you already solved the issue in an elegant (or less elegant
way?)?: Can you please share with me a workaround?
Thanks in Advance
Regards

P.s: I hope this inconsistency 'll be fixed in GWT...

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate