Wednesday, September 18, 2013

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

See https://code.google.com/p/google-web-toolkit/issues/detail?id=624#c12 (this was specifically for the FormPanel, but the underlying issue is the same)
A workaround seems to be to recreate a new Frame each time; not sure whether the tricks from Closure would apply here.

On Wednesday, September 18, 2013 3:07:07 AM UTC+2, Mohammad Al Quraian wrote:
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