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

Shadow elements nested parameter leak

XMLWordPrintable

    • None

      Steps to Reproduce

      run the attached static example: nested-apply-param-leak.zul
      (no further steps required)

      Current Result

      the value for the 'myvar' parameter is incorrect at the third (or higher) nesting level (same as in second level)

      Expected Result

      correct parameter values independent of the nesting level

      Debug Info

      this effect happens both for static and dynamic parameter expressions
      (when using ZK 8.0.0 all nested levels show the value from Level 1, this was improved since 8.0.1.1 where the second level looks as expected, still Level 3 or higher are incorrect)

      This example is simplified to a minimum static example, usually this happens when using recursive templates due to recurring parameter names.

      Workaround

      surrounding each <apply> content with a real zk component (e.g. <span>) fixes the problem at the cost of additional components in memory
      (the same rendering result can be achieved by using a <nodom> component, still not as efficient as it should be)

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h