我正在开发smartGwt项目我开发了简单的slectedItem下拉列表。此下拉列表未显示任何选择的vaules,这是多个选择下拉列表。下面是我的代码
final Window winModal = new Window();
winModal.setWidth(700);
winModal.setHeight(400);
winModal.setAutoSize(true);
winModal.setTitle("Schedule");
winModal.setShowMinimizeButton(false);
winModal.setIsModal(true);
winModal.setShowModalMask(true);
winModal.centerInPage();
DynamicForm form = new DynamicForm();
form.setHeight100();
form.setWidth100();
form.setPadding(5);
form.setLayoutAlign(VerticalAlignment.BOTTOM);
SelectItem selectItemMultiplePickList = new SelectItem();
selectItemMultiplePickList.setTitle("Select Multiple");
selectItemMultiplePickList.setMultiple(true);
selectItemMultiplePickList.setMultipleAppearance(MultipleAppearance.PICKLIST);
selectItemMultiplePickList.setValueMap("Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse");
form.setFields(selectItemMultiplePickList);
winModal.addItem(form);
winModal.show();
我的下拉小部件正在显示但未在下拉列表中显示任何值
anyhelp
提前致谢
答案 0 :(得分:0)