-
Bug
-
Resolution: Fixed
-
Major
-
8.0.4.2
-
Security Level: Jimmy
-
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)