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

Selection bug in Listbox with paging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • 6.0.0, 5.0.11
    • Components
    • Chrome 18.0.1025.168

      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)
      ...

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

              Created:
              Updated:
              Resolved: