Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3616

Listbox selection lost with ROD

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 8.0.5
    • 8.0.4.2
    • Components
    • 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)

            DevChu DevChu
            cor3000 cor3000
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours
                7h