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

can't get selected item correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.5, 8.5.1.2
    • Fix Version/s: 8.6.0
    • Component/s: None
    • Security Level: Jean
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.6.0 S1, ZK 8.6.0 S2

      Description

      Steps to Reproduce

      1. run the attached code
      2. click "load" button
      3. select 1 in the first combobox

      Current Result

      don't see any item in the 2nd combobox

      Expected Result

      the 2nd combobox should contain 1

      Debug Information

      • ZK calls setSelectedRootItem() twice, the 2nd time passed a null value
      • ZK calls getAvailableRoots() when selecting an item in the first combobox, this is unexpected

        [6642]NOTIFY_CHANGE
        [6642] *[notify-change] [[email protected]][availableChildren] <hbox uuid="wMwP0" id="" /> Size=2
        [6642] + LOAD_BINDING
        [6642] *[load:prop-load] vm.availableChildren > model [2] <combobox uuid="wMwP2" id="childCombo" />
        [6642] + LOAD_BINDING
        [6642] *[load:prop-load] vm.availableRoots > model [1, 2] <combobox uuid="wMwP1" id="rootCombo" />

      Workaround

      t5799-2.zul

        Attachments

        1. t5799.zul
          0.8 kB
        2. t5799-2.zul
          0.8 kB
        3. T5799VM.java
          2 kB
        4. T5799VM2.java
          2 kB

          Issue Links

            Activity

              People

              Assignee:
              DevChu DevChu
              Reporter:
              hawk hawk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: