Hi all,
I am new to RAP and I got a question,
Are there any way to be notified of user event on closing a browser tab.
I am working on a RAP platform (version: 2009.3.19)
I want to be notified when user close a tab or the entire browser
window.
I have tried these:
- Add a SessionStoreListener and implement its beforeDestroy method to the
ISessionStore instance returned from RWT;
- Add a WorkbenchWindowListener and implement its windowClosed method to
the current workbenh;
- Add a WorkbenchListener and implement its preShutdown method to the active
workbench window.
None of them functions properly (Firefox 3.0.9)
But the beforeDestroy and preShutdown will be invoked when I come back
to the link later.
By the way , I shifted from
M5 to the current version. On M5 beforeDestroy and preShutdown are invoked on closing the tab (not on revisit the link). It seems the two versions behave differently without any changes on source code.
I guess that there will be other way out. I might try M7 when it is available.
Thanks in advance.