-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have such index.zul:
<?link rel="stylesheet" type="text/css" href="./style.css"?>
<zk>
<div height="100%">
<template name="layout" src="/layout/template.zul"/>
<apply template="layout"/>
<template name="center" src="/center.zul"/>
</div>
</zk>
and template.zul:
<zk>
<borderlayout hflex="1" vflex="1">
<north height="100px" border="none">
<include src="/banner.zul"/>
</north>
<west width="260px" border="none" collapsible="true" splittable="true" minsize="300">
<include src="/sidebar.zul"/>
</west>
<center id="mainContent" autoscroll="true" border="none">
<apply template="center"/>
</center>
<south height="50px" border="none">
<include src="/footer.zul"/>
</south>
</borderlayout>
</zk>
I got the exception: file:/C:/Users.../src/main/webapp/index.zul:5:29: Component definition not found: apply in [LanguageDefinition: xul/html]
Where is the mistake?
the definition for the shadow elements (such as apply/if/forEach...) is contained in zuti.jar (available in ZK EE)
maven dependency:
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zuti</artifactId>
<version>${zk.version}</version>
</dependency>
Asked: 2019-01-14 02:30:59 +0800
Seen: 61 times
Last updated: Jan 15 '19