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

MVVM relocating components with ViewModels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.1
    • 8.0.0, 7.0.6.1
    • Databind 2
    • ZK 8.0.1

      problems with nested "binder" when detaching/re-attaching component containing a nested ViewModel/Binder

      the attached case has issues in both ZK7 and ZK8 (with slightly different outcome) when the <div id="detail"/> is relocated in the component tree un/wrapped in a decorating div.

      open simple.zul:

      "some command" button works and initiates a command on the InnerViewModel
      click the button to remove the decorator (1. remove ...)
      -> "some command" button still works correctly
      click the button to wrap the include in the the decorator again (2. wrap ...)
      -> ZK8 the "some command" does not fire anymore
      -> ZK7 the "some command" fires to the OuterViewModel

      in the server logs the component attributes of the detail include are logged, when the problem occurs important bind attributes are suddenly missing.

        1. simple.zul
          2 kB
        2. OuterViewModel.java
          0.4 kB
        3. InnerViewModel.java
          0.3 kB

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h