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

DefaultTreeModel does not properly synchronize deselection state

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 5.0.8
    • 5.0.7.1
    • Components
    • Windows 7

      using tree component like

      <tree checkmark="true" multiple="true" model="@

      {win$composer.model}

      "/>

      tree does not properly synchronize de-selection of tree nodes into tree model (if clicking on checkboxes)

      Reproduce:

      • create a tree using DefaultTreeModel
      • select 2 nodes via browser
        -> ((Selectable)tree.getModel()).getSelection() returns 2 nodes
      • unselect 1 node by clicking on checkbox
        -> ((Selectable)tree.getModel()).getSelection() returns 2 nodes

      please see also attached example code

        1. treetest.zul
          0.7 kB
          fse
        2. TreeTestCtrl.java
          3 kB
          fse

            benbai benbai
            fse fse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: