Explain again why the name of objects can't be internalized using constants on the client side?
Anyways, the general solution would be to set the internationalized string using java resource bundles in the server code prior to sending the objects over the wire to the client code. On Wed, Apr 22, 2009 at 4:31 AM, olel <[email protected]> wrote: > > Hi, > > I am a client/server application with a strict separation of client > and server code, which means that server code (like domain objects) > are allowed to be used by the client, but no client code might be used > be the server code (of course). > > Now I want to externalize all of my strings (error messages, labels > etc.). Some of them (like labels) are in the gui code and I can use > the gwt i18n concept (Constants interface) for it, but others are in > the domain objects (like the default name of some objects). Therefor I > would normally use the standard java resource bundle approach, but as > the domain objects are also used in the client this isn't possible. > Unfortunately I cannot use the gwt approach either as I would have to > use client code in the server part then. > > Is there any solution for my dilemma? ;-) > > Thanks in advance, > Ole > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
