jake H schrieb:

> 1)if instead .properties file extension i can use another one.

As far as I know, no. The concept behind is copied from Java's
ResourceBundle where the extension is fixed that way. Especially
if you want to use the same file for doing localizations on
the serverside (e.g. inside the RemoteServiceServlet) you should
stay with this file-extension.

> 2)I have some simple data , like name etc witch are saved in this
> file. But in order to work fine every time i change their values, i
> have to recompile. Is there any way to avoid that?

The text in the property-file is included into the generated
HTML-file, the compiler creates out of the Java-class and
the property-files, so there is no other way if you use this
framework. You can of course change your localization to
using Dictionarys instead of the Message-Framework where
the data is read into the HTML-page and you access it using
a map-access. But that way you lose the advantage that the
compiler is already telling you if you misspelled a key of
your localization and you lose a bit of performance because
the Map must be loaded in addition to the HTML-page.

So it's up to you, but personally I think that the time
needed for recompilation is short enough to buy the
advantages you have with this concept. Even if you have
a larger project, you don't need to start a recompile
every time you simply change one entry in the properties-
file but use your imagination instead ;-)


Regards, Lothar

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to