How to implement GWT Dynamic checkboxes in UiBinder.
Here is my requirement: I should implement Dynamic checkboxes. The marked check boxes are not fixed, there may be more or less of them.
By using <gwt:CheckBoxGroup ui:field="group1">
, I can implement fixed check boxes with static data like this.
<m:CheckBoxGroup ui:field="group2">
<m:CheckBox>11/17/2016</m:CheckBox>
<m:CheckBox>11/15/2016</m:CheckBox>
<m:CheckBox>11/14/2016</m:CheckBox>
<m:CheckBox>11/11/2016</m:CheckBox>
</m:CheckBoxGroup>
Can you help me implementing Dynamic checkboxes in uibinding.
UiBinder is just a declarative XML template. In the docs you will find:
So you need to add your checkboxes to the
CheckBoxGroup
with Java code:More examples here.