-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Normal
-
None
-
Affects Version/s: 9.0.0
-
Component/s: Components
-
None
-
None
Steps to Reproduce
<zk>
<zscript><![CDATA[
ListModel model = new ListModelList(Locale.getAvailableLocales());
model.setMultiple(true);
model.addToSelection(Locale.ENGLISH);
ListModel subModel = ListModels.toListSubModel(model);
]]>
</zscript>
<searchbox model="${subModel}" />
</zk>
- Open the searchbox, search for en
Current Result
en is not selected
Expected Result
en is selected
Debug Information
selectedUuids:[null]
If ListModel is a SubModel, full items won't be passed to client. Thus no item will be generated with a proper UUID.
Since _itemUuidRelations is empty. The result will be always null.
Workaround
- Use a ListModel (not a ListSubModel)
- Don't select any item at first