-
Bug
-
Resolution: Fixed
-
Major
-
8.0.4.2
-
Security Level: Jean
-
None
-
None
Steps to Reproduce
1. run the attached example
2. scroll to the middle (e.g. item-600) of the list
(might encounter ZK-3263 in chrome - not the issue here)
3. select item item-600
4. click "remove first item" (ca 3 clicks - not deterministic due to UUID-recycle)
Current Result
after the second click the selection highlighting disappears,
with further clicks client side Errors occur:
Failed to process setAttr row.isSelected is not a function (TypeError)
Then trying to select another item causes a server side ClassCastException
org.zkoss.zul.Listcell cannot be cast to org.zkoss.zul.Listitem
Expected Result
selection and selection highlighting is preserved when adding/removing items to the model
no JS error
no Server side error
Debug Info
while rerendering the currently visible listitems the UUIDs change but the client side keeps the UUIDs of the previous selection.
this problem doesn't happen with 8.0.2 (but also happens in 8.0.3)