|
Re: Detecting page reload of the browser [message #502964 is a reply to message #502944] |
Thu, 10 December 2009 08:04  |
Eclipse User |
|
|
|
please see the news post below, where a similar problem was discussed:
http://www.eclipse.org/forums/index.php?t=tree&th=42428& amp;S=54c759614ea560ca5e3c27e679e5c81e
HTH
Rüdiger Herrmann
http://eclipsesource.com
Sascha wrote:
> I have implemented a login dialog that opens prior to the perspective in
> openWindows():
>
>
> public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
> @Override
> public boolean openWindows() {
> LoginDialog loginDialog = new LoginDialog();
> loginDialog.open();
> }
> }
>
> // login is done via JAAS and JBoss
> org.jboss.security.client.SecurityClient
>
> SecurityClient securityClient = SecurityClientFactory.getSecurityClient();
> securityClient.setSimple(userName, password);
> securityClient.login();
>
>
>
> This works fine. When the user hits F5 in his browser, the Perspective
> is being rebuild. So the WorkbenchAdvisor calls again openWindows(), and
> the LoginDialog re-appears. I have no session information at this
> moment, so I can't decide, to skip the login dialog.
>
> How can I detect a browser reload?
|
|
|
Powered by
FUDForum. Page generated in 0.03802 seconds