Sunday, May 31, 2015

uibinder h1 translated

I have a UiBinder xml that starts like this:

<!DOCTYPE ui:UiBinder SYSTEM "">

<ui:UiBinder xmlns:ui="" xmlns:b="urn:import:org.gwtbootstrap3.client.ui" xmlns:b.html="urn:import:org.gwtbootstrap3.client.ui.html"

xmlns:r="" xmlns:g="">

<ui:with field="nameTokens" type="" />

<ui:with field="txt" type="com.example.myproject.client.translation.LandingPage" />

<ui:with field="w" type="" />



<div class="navbar navbar-inverse navbar-fixed-top {w.w.navbar} {w.w.navbarInverse} " role="navigation">


txt contains all the text for the page according to the selected language of the user. so I have this somewhere in the xml:

<li draggable="true">

<g:Anchor text="{txt.testimonialsHeader}" ui:field="headerTestimonials" styleName=""></g:Anchor>


my question is:

how can I write something like:

<h1> {txt.usersHeader}</h1>  

in the xml file and have the real text displayed? (cause when I put this in my xml file, the {txt.usersHeader} is not interpreted...)

I only want to know about the xml file of uibinder (I know that I can do it in java)

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment