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

zk recreates injected page unexpectedly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 9.5.1
    • 8.6.2, 9.5.0
    • Databind 2
    • Security Level: Jimmy
    • ZK 9.5.1 S1

      Steps to Reproduce

      1. run applyArg.zul
      2. click "switch src" button, switch to b.zul

      Current Result

      InitVM.init() is called.
      It's unexpected because b.zul doesn't apply InitVM

      Expected Result

      InitVM.init() is not called

      Debug Information

      1. This bug happens since 8.6.2 for fixing ZK-4221

      Workaround

              <apply navInfo="@load(vm.navInfo)">
                  <apply templateURI="${navInfo.src}" time="${navInfo.arg}"/>
              </apply>
      

        1. a.zul
          0.2 kB
          hawk
        2. applyArg.zul
          0.6 kB
          hawk
        3. ApplyArgVM.java
          2 kB
          hawk
        4. b.zul
          0.0 kB
          hawk
        5. InitVM.java
          0.2 kB
          hawk

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days
                2d