Re: How to read properties at runtime

2011-12-01 Thread Thomas Broyer
See 
http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGuideDynamicStringInternationalization
 and http://code.google.com/webtoolkit/articles/dynamic_host_page.html for 
more info.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/C8lDIivBZmYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to read properties at runtime

2011-11-30 Thread Ramesh
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to read properties at runtime

2011-11-30 Thread Alfredo Quiroga-Villamil
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.v1...@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.