I created a custom form dropdown widget in GWT. Basically it is a list box with some bells and whistles attached to it. I would like to add items to the list box using the UiBinder. If it was just a gwt ListBox I could have
<g:ListBox>
<g:item>Test</g:item>
<g:item>Test</g:item>
</g:ListBox>
and all is good. In the same spirit I would like my custom widget to also aceppt adding items like:
<my:FormDropdown>
<g:item>Test</g:item>
<g:item>Test</g:item>
</my:FormDropdown>
I don't need it to be g:item that I add to it incase I need to make a custom thing. I think I need to use GWT UiBinder factory methods, but I can't find a location in the GWT UiBinder docs that discusses this.