0

Understanding templates

asked 2016-01-21 10:33:50 +0800

DMH gravatar image DMH
35 6

Can someone help me understand templates?

On the ZKEssentials books its basically explained like this: create regular zul.

On another zul say theres a template with name "Name" and say its source its the previous regular zul.

Afterwards just use <apply template="Name"/>

But in between theres @insert(content) and @define(content) and none of this is explained or what they mean.

delete flag offensive retag edit

Comments

Its the examples on the book that I can't understand.

Also I have no idea why I can't comment on your answer.

I've got the template working but everytime I change the source on the include it takes me to the page I want yet its stuck processing and I can't click anything on the new page.

DMH ( 2016-01-21 13:00:57 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-21 11:55:48 +0800

Darksu gravatar image Darksu
1991 1 4

Hello DMH,

Please check out the following document which gives a lot of details:

http://books.zkoss.org/wiki/ZKDeveloper'sReference/UI_Patterns/Templating/Composition

If you still need more info, please let me know.

Best Regards,

Darksu

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: 2016-01-21 10:33:50 +0800

Seen: 9 times

Last updated: Jan 21 '16

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