On Thursday, March 15, 2012 8:32:10 PM UTC+1, Constantino wrote: > > When I execute this app: > > > http://code.google.com/p/google-web-toolkit/downloads/detail?name=Tutorial-hellomvp-2.1.zip > > > I initially click on the "Say good-bye" link, then click on "OK" and I > see the "Good-bye" message. > > Then I click on the back button to see the hello activity again. > > This time instead of clicking on the link I click on the browser > forward button, it will: > > - ask the message returned by the mayStop method > - before I click on ok or cancel the URL is already changed > - if I click cancel the URL will stay "http://127.0.0.1:8888/ > hellomvp.html?gwt.codesvr=127.0.0.1:9997#GoodbyePlace:World<http://127.0.0.1:8888/hellomvp.html?gwt.codesvr=127.0.0.1:9997#GoodbyePlace:World>!" > > but the > hello activity is still being displayed > > Looks like a bug in GWT, isn't it?
It's not. Using the forward button of your browser changes the URL to #GoodbyePlace:World!, which the PlaceHistoryHandler detects. Itthen calls your PlaceHistoryMapper to transform that to a Place and call the goTo. Even if you cancel the goTo, the URL has already been changed, as it was the initial trigger. See http://code.google.com/p/google-web-toolkit/issues/detail?id=6726 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/N2KLvrejtMsJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
