Ok, excuse the silly question. I did not read the manual carefully enough; Of course, I simply can pass an instance of a MyMessages object, using the <ui:with> tag.
The documentation is great! Thanks.. On 14 Jan., 15:40, tomsn <[email protected]> wrote: > Hallo, > > is it possbile to use an own instance of an implementation of the > com.google.gwt.i18n.client.Messages interface inside UI scripts to > resolve message/ constants keys? > > This would be necessary for us, due to the creation of the MyMessages > instance is based on a more or less complex generation strategy, based > on deferred binding. > > To clarify my example: > > interface MyMessages extends Messages{ > //my keys..} > > To instantiate MyMessages I do the following: > MyMessages msgs = ((MyMsgProviderFactory) GWT.create > (MyMsgProviderFactory.class)).getMsgs(); > > The concrete MyMsgProviderFactory is determined by several 'replace- > with' declarations in my Main.gwt.xml. > Each concrete factory then knows how to instantiate the required > MyMessages instance, which I want to use in my UiBinder scripts. > > So, I use a sort of overlays to generate a user-specific MyMessages > instance, basically working like the following article > describes:http://eskatos.wordpress.com/2008/07/19/customer-i18n-overlays-with-gwt/ > > Thanks.. > > Regards > Tom
-- 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.
