0

Component definition not found: apply in

asked 2019-01-14 02:30:59 +0800

Aoizora gravatar image Aoizora
1

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?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-01-15 09:29:50 +0800

cor3000 gravatar image cor3000
4406 2 7
ZK Team

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>
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2019-01-14 02:30:59 +0800

Seen: 8 times

Last updated: Jan 15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More