Hi all,
is there a possibility to preselect an item in a ComboBox, when the ContainerDatasource of the Box differs from the propertyDatasource?
Here is an example:
String[] list = {"1", "2", "3" };
ComboBox select = new ComboBox("", Arrays.asList(list));
box.setPropertyDataSource(SQLContainer().getItem(itemId).getItemProperty("number"));
box.select("2");
The box.select(“2”); command doesn’t work. If I do not use setPropertyDataSource(…); it works.
Has anybody a solution or workaround for this?
Thanks a lot!
Chris