How to read properties at runtime

310 views
Skip to first unread message

Ramesh

unread,
Nov 30, 2011, 2:19:55 PM11/30/11
to Google Web Toolkit
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...

Alfredo Quiroga-Villamil

unread,
Nov 30, 2011, 8:39:40 PM11/30/11
to google-we...@googlegroups.com
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


--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@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


Thomas Broyer

unread,
Dec 1, 2011, 3:51:02 AM12/1/11
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages