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

2013-09-18 Thread Thomas Broyer
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+unsubscr...@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.


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

2013-09-17 Thread Mohammad Al Quraian
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+unsubscr...@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.