Originally posted by Isomorphic
Code:
carDriverComboBox.setOptionDataSource(carDriverDS); carDriverComboBox.setValueField("key"); carDriverComboBox.addDataArrivedHandler(new DataArrivedHandler() { @Override public void onDataArrived(DataArrivedEvent event) { ResultSet resultSet = event.getData(); carDriverComboBox.setValueMap(new LinkedHashMap(resultSet.getValueMap("key", "nickName"))); } }); DataSourceTextField carDriver = new DataSourceTextField("carDriver", "Driver"); carDriver.setEditorType(carDriverComboBox); myTripDataSource.addField(carDriver);
Comment