Wednesday, November 30, 2011

Re: How to read properties at runtime

I think the closest you will get to what you need is to use a combination of Dictionary (http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/i18n/client/Dictionary.html) and Server side response to create that dictionary and load it to a globally scoped JS object. This would I think give you the run time look up you are looking for.

The idea would be to have some back-end service that reads say a property file and then respond to the client which would consequently build that Dictionary previously mentioned.

Disclaimer:

Wait before you start to implement it since I am not 100% sure. There might be a better way to do it.

Regards,

Alfredo

On Wed, Nov 30, 2011 at 2:19 PM, Ramesh <ramesh.v1210@gmail.com> wrote:
Hi,
I am using GWT com.google.gwt.i18n.client.Constants for reading
properties file in GWT. And using GWT.create to create instances for
these properties. Actually these values are read at GWT compile time.
But i want them to read at run time so that i need only to restart the
server when i change these properties. I googled for the solution but
nothing gave me an exact solution. Can some one please help me in
this.

Thanks in Advance...

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.




--
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.

No comments:

Post a Comment