In onModuleLoad, special case the logout token.  Replace:
History.fireCurrentHistoryState();

with:
if (!"logout".equals(History.getToken())) {
  History.fireCurrentHistoryState();
}

Thanks,
John LaBanca
jlaba...@google.com


On Fri, Feb 11, 2011 at 11:36 AM, daniela iervolino <daniela.ie...@gmail.com
> wrote:

> Hi everybody,
> I'm trying to implement a simple logout reloading the page.
> The logout is an hyperlink, so I'm dealing with History.
> If the token is "logout", I want to reload my page...
> The problem is that the reloading goes on "forever" until I stop the
> application.
> Does anyone know how I can force only one reloading?
> Thanks
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to