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

DefaultTreeModel does not properly synchronize deselection state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.7.1
    • Fix Version/s: 5.0.8
    • Component/s: Components
    • Labels:
    • Environment:

      Windows 7

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: