Tuesday, May 31, 2011

Re: Using custom LocalMessages apart from Locales

An <ui:with/> translates into a GWT.create() call (unless you @UiField(provided=true) the field in your Java class). Because you're now GWT.create()ing the LocalMessagesFactory, you'll have to change you ui.xml files to <ui:with field="localMessage" type="net.company.project.common.widgets.client.i18n.LocalMessagesFactory" /> an then use it as {localMessage.get.foo} instead of {localMessage.foo}.

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.

No comments:

Post a Comment