Tuesday, September 17, 2013

The Frame class adds to the history tokens every time I change the URL, how can I stop that?

I noticed that a certain page would appear many times in the 'go back' history tokens. After some digging I found out that the cause is the class 'Frame', specifically every time  I change the URL like this:
videoFrame.setUrl(url);
the tokens would increase with the same current page! Which is very annoying. I tried to stop the LoadEvent like this:


private HandlerRegistration handler;

handler = videoFrame.addLoadHandler(new LoadHandler() {

@Override
public void onLoad(LoadEvent event) {
handler.removeHandler();
}
});

With no luck what so ever. I tried other things but I got no where.
Any help?

Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment