-
Bug
-
Resolution: Duplicate
-
Normal
-
None
-
7.0.8
-
None
-
Security Level: Jimmy
-
None
-
ZK 8.0.3 S3
steps to reproduce
- specify the property below in zk.xml
<library-property> <name>org.zkoss.zul.listbox.checkmarkDeselectOthers</name> <value>true</value> </library-property>
- run the zul below
<zk> <listbox width="250px" height="100px" multiple="true" checkmark="true" mold="paging" pageSize="2" onSelect="count.setValue(self.getSelectedCount());" onPaging="count.setValue(self.getSelectedCount());" > <listitem label="hello" /> <listitem label="world" /> <listitem label="hello" /> <listitem label="you" /> </listbox> <intbox id="count" /> </zk>
- click the 1st and 2nd item's checkmark (insteaf of a listitem itself) , selection count is 2
- switch to the next page click the 1st item's checkmark
- de-select the 1st item by clicking its checkmark
result
selection count is 0
because Listbox clears the previous selection.
expected result
selection count is 2
- relates to
-
ZK-3231 Listbox doesn't keep selection after switching pages with org.zkoss.zul.listbox.checkmarkDeselectOthers enabled (true)
- Closed