Friday, August 20, 2010

Re: Reusing GWT Localization in Server Side Code

Well, our solution is to keep dictionaries ( property files ) server-
side ( actually in server-side client-specific plugin ). Client loads
appropriate property file by GWT-RPC request.

For each string which is used on the client there is a separate method
in ClientMessages class, say

String ClientMessages.getMainFormTitle(){
return m_dictionary.get("MainFormTitle");
}

In other words client explicitely loads dictionary from server using
GWT-RPC call into instance of ClientMessages class and then uses its
methods to get appropriate strings.

You can see how it works in reality:
http://www.projectkaiser.com:8080/pk

Maxim

>
> If anyone has any better ideas please sing out!
>
> Joe
> On Aug 17, 7:20 am, Casey <j.casey.one...@gmail.com> wrote:

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate