not exactly,

ui:name and ui:description
are for messages that uibinder generates from templates (e.g.: the
default set messages - the other you should provide anyway as files).
the proper how-to is in the link to docs you gave above.

ui:text is used when you have messages in resources that you expose to
uibinder template. (which is for example what i prefer to do)
than you us eit like this:

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
        xmlns:g="urn:import:com.google.gwt.user.client.ui">
    <ui:with field='msg'
type='com.tomaszgawel.client.YourWidget.Messages'/>
        <g:HTMLPanel>
           <span>
                  <ui:text from="{msg.hello}"/>
                </span>s
                <g:InlineLabel text="{msg.world}" />
        </g:HTMLPanel>
</ui:UiBinder>


in java you have sth like that:
public class YourWidget extends Composite {
        //messages interface does not need to extend any of
com.google.gwt.i18n.client.* iterfaces but it probably will ;)

        interface Messages extends ConstantsWithLookup {
                String world();
                String hello();
        }

        @UiField Messages msg; //messages must be ui:field - if you allready
have an instance of messages use @UiField(provided = true)

that's all :)

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to