How do I add items to GWT ListBox in Uibinder .ui.xml template ?
问题 How to add the listbox items using UiBinder? 回答1: This is a listbox of translations of an enumeration, I suppose this also works for a listbox with string values (version of GWT: 2.1.0) You only need the renderer for translating the enumeration values. //UI XML <g:ValueListBox ui:field="requesterType"/> //JAVA CODE @UiField(provided = true) ValueListBox<RequesterType> requesterType = new ValueListBox<RequesterType>(requesterTypeRenderer); static EnumRenderer<RequesterType>