-
Bug
-
Resolution: Fixed
-
Major
-
8.0.2
-
None
-
Security Level: Jimmy
-
None
-
ZK 8.0.3 S3
-
None
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 item's checkmark (insteaf of a listitem itself) , selection count is 1
- switch to the next page click the 1st item's checkmark
result
selection count is 1
because Listbox clears the previous selection.
expected result
selection count is 2
debug info
- this issue doesn't happen in 7.0.8 and happens since 8.0.0
- Cannot disable org.zkoss.zul.listbox.checkmarkDeselectOthers with <custom-attribute> for the implementation