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

collapse a group causes ClassCastException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 10.1.0
    • 9.6.4
    • None
    • Security Level: Jimmy

      Steps to Reproduce

      1. open the listheader popup > group
      2. change to page 3
      3. collapse "Group 002"

      Current Result

      java.lang.ClassCastException: class org.zkoss.zul.Listitem cannot be cast to class org.zkoss.zul.Listgroup (org.zkoss.zul.Listitem and org.zkoss.zul.Listgroup are in unnamed module of loader 'app')
      at org.zkoss.zul.impl.ListboxDataLoader.doGroupsDataChange(ListboxDataLoader.java:104)
      at org.zkoss.zul.Listbox.onGroupsDataChange(Listbox.java:2668)
      at org.zkoss.zul.Listbox.access$1100(Listbox.java:283)
      at org.zkoss.zul.Listbox$5.onChange(Listbox.java:505)
      at org.zkoss.zul.AbstractGroupsModel.fireEvent(AbstractGroupsModel.java:72)
      at org.zkoss.zul.GroupsModelArray.setOpenGroup0(GroupsModelArray.java:254)
      at org.zkoss.zul.GroupsModelArray.removeOpenGroup(GroupsModelArray.java:240)
      at org.zkoss.zul.Listgroup.service(Listgroup.java:220)
      at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:793)
      at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1312)
      at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:571)
      at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:451)
      at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:459)

      Expected Result

      no error

        1. zk-5613.zul
          0.4 kB
        2. TestComposer.java
          1 kB
        3. Renderer.java
          0.5 kB
        4. Item.java
          0.5 kB

            jumperchen jumperchen
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: