-
Bug
-
Resolution: Fixed
-
Major
-
8.6.2
-
Security Level: Jean
-
None
-
None
I have a main ZUL file (in this example index.zul) that includes other ZUL files via apply element. The templateURL is dynamically and loaded via MVVM
<apply templateURI="@init(mainVM.headerLayout)" vmClass="@init(mainVM.headerVmClass)"/>
With ZK 8.6.2 I get org.zkoss.zk.ui.UiException in included ZUL file (in this example header.zul)
When I change the templateURI to static value, it works with ZK 8.6.2
<apply templateURI="/header.zul" vmClass="@init(mainVM.headerVmClass)"/>
Steps to Reproduce
Start enclose example with ZK 8.6.2 http://<server>:<port>/zk862/index.zul
Change in pom.xml the ZK version to 8.6.1 and repeat step one, now it works.
Workaround
flip the order of properties then vmClass is loaded before evaluating the templateURI
<apply vmClass="@init(mainVM.headerVmClass)" templateURI="@init(mainVM.headerLayout)" />
- relates to
-
ZK-4221 load binding order/cleanup problem
-
- Closed
-