|Launching a dialog on startup [message #646772]
||Fri, 31 December 2010 02:27
| Graham Missing name
Registered: July 2010
I've created a RAP 1.3.1 application that has a login dialog that can be launched from the menu. |
I would like to launch this login dialog on startup rather than having to go to the menu. I've tried adding code to both the postStartup and openWindows methods of my WorkbenchAdvisor class.
I'm seeing some unusual behavior. When my session expires and my login dialog is still active. My SessionStoreListener->beforeDestroy is never called and instead I see a org.eclipse.rwt.internal.lifecycle.UIThread$UIThreadTerminat edError.
If the login dialog is launched from the menu rather than on startup then when my session expires the SessionStoreListener->beforeDestroy is called correctly and no exception occurs.
I tried wrapping the login dialog run inside a execAsync in the WorkbenchAdvisor methods but that didn't help. It still showed that exception when the session expired.
How can I launch the dialog on startup so that I get the same behavior as if it was launched from the menu?
Thanks in advance.
[Updated on: Fri, 31 December 2010 02:30]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01535 seconds