Friday, September 16, 2011

Re: remember places

While a Place can hold any data structure, including other places, as you said once you refresh the browser, the data is lost. 

To circumvent this, Place must be considered to be a special kind of object in GWT, such that, the state of the place must be represented as part of url.  This is the reason for having a PlaceTokenizer. So in spite of having a reference to the toBeRedirectedPlace, you must also have a url param redirectTo=<xxx>, from which you can reconstruct the place on browser refresh. 

Hope this helps!

--
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/-/i_mxvBlIcV4J.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate