Re: Is there a way to use i18n in a shared class that works on client and server too?

2010-12-09 Thread nacho
Any idea? Noone did this before? On 19 nov, 12:36, nacho vela.igna...@gmail.com wrote: I have some Validators classes. I use those classes in the client code, so I think to use Constants: For example, in some part of my AccountValidator I have this:

Re: Is there a way to use i18n in a shared class that works on client and server too?

2010-12-09 Thread Shawn Brown
Hi, How can I handlei18nin a class that I use in server classes and in client classes? Here is a recent thread on the topic. http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg48015.html I think you'll find GWT doesn't do this well. Shawn -- You received this message

Is there a way to use i18n in a shared class that works on client and server too?

2010-11-19 Thread nacho
I have some Validators classes. I use those classes in the client code, so I think to use Constants: For example, in some part of my AccountValidator I have this: errors.add(myConstants.accountTypeRequired()); That works great for GWT compiled code. But what about if I need to use this same