I'm having a hard time integrating it with UiBinder because of the way
attributes are processed:
- <foo bar='{field.ref}baz'/> produces @Template("<foo bar='{0}'/>")
with a field.ref() + "baz" argument; it would have to produce (in an
HTML context only) @Template("<foo bar='{0}baz'/>") so the argument
could be of type SafeUri
- all field references in HTML context (HtmlInterpreter, any other?)
are processed as String; they would have to be typed depending on the
type of the resolved reference (String or SafeUri)
If you plan on integrating SafeCss with UiBinder, you'll face the same
issues. I thus propose tackling it in another patch.
This patch, for now, allows (and is limited to) using data: URLs (among
others) as arguments to SafeHtmlTemplates.
http://gwt-code-reviews.appspot.com/1380806/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors