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

Selection bug in Listbox with paging

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.0.0, 5.0.11
    • Fix Version/s: None
    • Component/s: Components
    • Environment:

      Chrome 18.0.1025.168

      Description

      http://zkfiddle.org/sample/b9isjp/8-Selection-Error-on-Listbox-with-Paging

      1. Select an item on page 1
      2. Switch to page 2 and shift-select an item
        Here we see the first error, the items inbetween are not selected correctly
      3. Switch back to page one -> ArrayIndexOutOfBoundsException (this does not occur in ZK 6 apparently)

      java.lang.ArrayIndexOutOfBoundsException: -1
      at java.util.ArrayList.get(ArrayList.java:324)
      at org.zkoss.zul.ListModelList.getElementAt(ListModelList.java:142)
      at org.zkoss.zul.Listbox.service(Listbox.java:3385)
      at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:691)
      at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1123)
      at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:562)
      at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457)
      at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:465)
      ...

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            cypha cypha
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: