Tuesday, June 4, 2013

Re: Place and states of widgets

You don't want to save the UI state in the URL. The reason is that if you do so, the browser would have two history entries if you check and then uncheck a checkbox. Now when you hit the browsers back button you don't go to the previous place (the previous selected menu item) but you just undo the last checkbox action. Thats probably not what you want.

So you should store UI state in the browsers local storage (http://www.gwtproject.org/doc/latest/DevGuideHtml5Storage.html) or save it in memory using a Map or something.

-- J.

--
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+unsubscribe@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment