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

Listbox selection lost with ROD

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0.4.2
    • Fix Version/s: 8.0.5
    • Component/s: Components
    • Security Level: Jean
    • Labels:
      None

      Description

      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)

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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