gwt2 - GWT 2.1 Place/Activity technique glitch: URL changes before navigation is confirmed -


i'm reading google guide , using this sample code provided google, there's glitch: using back/forth buttons makes url change before confirmation dialog has returned. means if user decides not navigate away, url no longer represents current place.

anyone have solution or workaround? ideally, url not change until confirmation given, switching url in hurry after denial better.

there's no workaround. app somehow detects url has changed, triggers place change (thus before navigation confirmed).

and there's no way know why url changed; "back"? "forth"? "back" using history menu go several steps @ time? bookmark? manual editing of url? there's no way history.next() "cancel" url change in cases (also note trigger place change). , trying modify url else history.back/next/go erase forward history, don't want either.

fyi, implemented behavior 2 years ago in own "place manager", , talked ray ryan when added placehistoryhandler gwt 2.1, , agreed there no better behavior letting url no longer being in sync place. fyi, when studied thing 2 years ago, , earlier year, gmail had same behavior (create draft message , navigate while draft has unsaved changes).


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -