You would simply write out, server side, a Dictionary JS object and then pick that up in the GWT code.
See http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/i18n/client/Dictionary.htmlfor more details. Regards On Thu, May 20, 2010 at 1:46 PM, Mike Noordermeer <[email protected]> wrote: > Hi, > > What is a good way to get dynamic configuration information to the client? > > I've an application that has some configuration parameters that we > need client side, which include: > > - Configurable dates fetched from a database. > - Certain interface heights/widths, preferably configured in some easy > .properties file. > - Labels for weeks fetched from a database. > > Looks like the Constants interface is not a good match for this since > a recompile seems necessary on every change. > > I was thinking about creating some Configuration object that gets > fetched on application start (server fills it with the necessary > data), and which is then available through some singleton/static > variable construct. Disadvantage is of course that singletons are > sometimes discouraged, and that it's more work to code than an out of > the box solution. > > Any thoughts on this? > > -- > Regards, > > Mike Noordermeer > [email protected] > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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.
