@UiChild Nested Tags

36 views
Skip to first unread message

bk...@boomi.com

unread,
Jan 17, 2017, 5:21:14 PM1/17/17
to GWT Users
TabLayoutPanel supports @UiChild like behavior through the "tab" sub tag. But it also supports two sub-sub-tags ("customHeader" and "header") underneath the "tab" sub tag. How can I do the same in my own custom widgets? Can I use @UiChild to indicate sub-sub-tags? If not how can I replicate the functionality in TabLayoutPanel in a UiBinder file?

Jens

unread,
Jan 17, 2017, 5:53:19 PM1/17/17
to GWT Users
AFAICT @UiChild does not support sub-sub-tags. You would need to define a sub component that itself again has @UiChild tags, so it becomes

<my:component>
  <my:tag>
     <my:component2>
         <my:tag2>


Or don't use @UiChild at all in these cases and do it in code.

-- J.
Reply all
Reply to author
Forward
0 new messages