Monday, September 5, 2011

Re: redirect GWT application URL

Recent browsers implement pushState/onpopstate which allows changing the URL (and not only the "hash" part) without unloading the page. You can see it at work in Google Plus, GitHub's repository browser or even Facebook.
In GWT, you could use deferred binding to replace the Historian implementation used by PlaceHistoryHandler (I bet you could even replace the HistoryImpl instead, at a lower level) if the browser supports pushState/onpopstate, and use the default implementation using the URL's "hash" otherwise.

--
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/-/15RjXbOQJqcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment