I am developing an app using Grails
and GWT
for a client side.
I want to use the same date format
both on the client side and on the server side (preferably defined in one file).
So far i've understood that Grails got it's own mechanism for internationalization (grails-app/i18n
). I know i can access these messages from any server code using app context.
I can also access any resource file inside web-app
directory.
For the client side, i can use ConstantsWithLookup
interface and GWT.Create(...)
to get an instance of it.
But, i still haven't found good solution to integrate these two together, so i have date format
defined in one place. Any ideas or tips?
Thanks, Sergey