views:

571

answers:

1

How to add the listbox items using UiBinder?

+2  A: 

It is not possible

http://code.google.com/p/google-web-toolkit/issues/detail?id=4654

But it looks like some guys have been working on a patch to be able to add items following this syntax:

<g:ListBox>
  <g:item value='1'>
    first item
  </g:item>
  <g:item value='2'>
    second item
  </g:item>
</g:ListBox>
DrDro