Instead of asking the user for a locale preference for your page, why not just assume that his browser is configured to tell you his preferred language using the HTML Accept-Language header?
http://www.w3.org/International/questions/qa-accept-lang-locales http://download.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getLocales() On Dec 30, 2:22 pm, Magnus <[email protected]> wrote: > Hi Jhuford, > > this sounds interesting. > > I have the user's choice in a database. But my host page is always the > same. I have only one host page, which is nearly empty. Everything > including the login window is generated by code. > > At the moment, I feel unable to test the method you described. Could > you please outline the steps that I have to do? > > Below is my code that generates the main gui on top of the empty host > page. > > Magnus > > private void initDisplay () // called from within onModuleLoad > { > DockLayoutPanel display = new DockLayoutPanel (...); > ... > RootLayoutPanel.get().add(display); > } > > ---------- > > On Dec 30, 5:41 pm, jhulford <[email protected]> wrote: > > > > > You can store off the user's chosen locale into a database of some > > sort and then when your host page is being written after the user logs > > in (like w/ jsp or php or something) load the users language > > preference and set it via the meta tag. > > > The only time you'd need to reload the app then is on that initial > > time when the user changes their language settings. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
