In my .ui.xml I have:
<ui:with field='texts' type='mypackage.MyBundle'/>
and: <div><ui:text from="{texts.myText.getText}"/></div>
In mypackage.MyBundle extends ClientBundle: @Source("myText.txt")
TextResource myText();
and of course the myText.txt with the text to be embedded.TextResource myText();
I know there is a <ui:safehtml/> in order to embed HTML without escaping anything. But somehow I missed the link how to get a SafeHtml from a TextResource.
Can anyone provide the missing piece?
--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment