I finally got it! The issue was that I need to ad a container/wrapper tag
around the child using the tagname specified in the @UiChild
so
<aj:CustomParent>
<aj:myChild>
<aj:CustomChild ui:field="aChild"></aj:CustomChild>
</aj:myChild>
</aj:CustomParent>
The CustomParent object has a method with annotation
@UiChild(tagname="myChild") which is invoked with the <aj:CustomChild
element
This is somewhat counter to the 'normal' way, which I guess I can implement
if I use a custom parser.
However, as I noted in my initial question I was looking at other libraries
to get an idea of how to do this and noted that GwtBootstrap3 does not seem
to use any of the implementations mentioned here.
If anyone knows how I would appreciate some pointers. Even better if the
GwtBootstrap3 guys happen to read this.
It would be more uniform if I didn't have to surround each child in a tag
to invoke the add method for it
<aj:CustomParent>
<aj:myChild>
<aj:CustomChild ui:field="child1"></aj:CustomChild>
</aj:myChild>
<aj:myChild>
<aj:CustomChild ui:field="child2"></aj:CustomChild>
</aj:myChild>
<aj:myChild>
<aj:CustomChild ui:field="child3"></aj:CustomChild>
</aj:myChild>
</aj:CustomParent>
Thanks for your help!
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.