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
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
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.
flip the order of properties then vmClass is loaded before evaluating the templateURI