Tuesday, December 2, 2014

Re: custom elementparser for UiBinder

That sort of helps, but now I can't get ui:field to be recognized in the child.

For instance:

ParentComponent class has 
@UiChild(tagname="ChildComponent")
public void add(ChildComponent c) {}

If the UiBinder has
<g:HTMLPanel>
<aj:ChildComponent ui:field="child1"></aj:ChildComponent>

Then it works

But if I have
<g:HTMLPanel>
<aj:ParentComponent ui:field="parent1">
<aj:ChildComponent ui:field="child1"></aj:ChildComponent>
</aj:ParentComponent>

Then I get a compoile error MyTest.ui.xml has no ui:field attribute for <package>.MyTest#child1

Any ideas? I'm stumped.

Also, I tried looking at some other gwt libraries. I see mgwt has a generator but I was playing with gwtbootrstrap3 and cant see either an @UiChild or a generator for that.

Any pointers would be most welcome!

--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment