Hi,
I would love seeing some improvements to UiBinder that it would allow
String of SafeHtml for children. I don't want my templates to be full of
HTMLPanel when just a String or SafeHtml would do. Specifying these
children using attributes is not really a great idea since I don't want
to
Hi all,
Although the
dochttp://www.gwtproject.org/javadoc/latest/com/google/gwt/uibinder/client/UiChild.html
does
say ...add a child widget to... in my searching it seems as if you can
also use UiChild with DOM elements that extend
com.google.gwt.dom.client.Element class. Thomas Broyer gives
Looks like I was wrong and you can only use widgets (there's an explicit
isImportedElement test that checks the element is within a namespace
whose URI starts with “urn:import:”)
BTW, isn't the error message rather “Expected child from a urn:import
namespace, found div” ?
On Saturday, October
Ah sorry, hadn't looked carefully at your code: with
@UiChild(tagname=div), UiBinder expects a my:div (my being the same
as the containing widget):
my:customWidget
my:div
ui:HTMLPanel
foo
/ui:HTMLPanel
/my:div
/my:customWidget
That doesn't change the problem though:
I see. No problem though, thanks a lot for the explanation. I have a work
around for this, I just wanted to make sure that I wasn't going that route
if uichild on elements was possible. Thanks again Thomas.
On Saturday, October 5, 2013 10:54:36 PM UTC+2, Thomas Broyer wrote:
Ah sorry, hadn't
Hi Thomas,
Just one last thing, are there still no plans for uibinder element parsing
functionality extension like the patch in this
issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=4461?
Would be preeetty awesome.
On Saturday, October 5, 2013 10:54:36 PM UTC+2, Thomas Broyer