Perhaps you're not crossing all the 't's correctly here? Here is the code I
use. It works for me with HTML, no need to escape it, the GWT
compiler/runtime does that.
*# messages file*
page.title=<b>My Title!</b>
*# message interfaces java file*
package com.me;
import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.Messages;
public interface MyMessages extends Messages {
@Key("page.title")
String getPageTitle();
public static class Default {
private static final MyMessages instance =
GWT.create(MyMessages.class);
public static MyMessages getInstance() {
return instance;
}
}
}
*# UiBinder File*
<ui:with field='msg' type='com.me.MyMessages'/>
<ui:text from="{msg.getPageTitle}"/>
Sincerely,
Joseph
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/1i3ILrssrm4J.
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.