PDA

View Full Version : change locale maintaining informations



jakovdt
2 Aug 2010, 3:31 AM
Hi all,
in my application, after a user has logged, I read in the database a language field to change the locale...
the problem is that, when I change the locale adding ?locale=it in the address bar this implies the reload of the application . I have already discarded gwt dictionary method. I'm searching for a way to maintaining state of my app (keep the user logged)...I'm looking gwt history but it seems not suitable in this case...
Any idea? Thanks,

J

sven
2 Aug 2010, 3:40 AM
You can safe the state in your database for example and if the user comes back to your page (which happens on a reload), you restore your state manually.

jakovdt
3 Aug 2010, 12:04 AM
Yes, I think it's the right solution...but I thought of a cookie that stores user data.
However, I mainly want to know if gwt history could be used or not...
Thanks,

J