0

Master page? (as in ASP.NET) [closed]

asked 2013-01-29 15:20:23 +0800

RetoH gravatar image RetoH flag of Switzerland
44 5

Hi everyone,

I am really getting frustrated here. I am starting a new web application and just can't figure out how use the available templating mechanisms in a manner similar to master pages in ASP.NET (e.g. see http://msdn.microsoft.com/en-us/library/wtxbf3hh.aspx).

I want the same layout (header/footer) for every zul page in the web app. I am sure this is an extremely common requirement.

I would be very grateful for pointers to the relevant documentation and examples.

Thanks for your time Reto

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by sjoshi
close date 2013-02-08 05:55:46

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-01-30 05:36:11 +0800

jj gravatar image jj
638 3

This is a Composition pattern. Look at this: http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/UI%20Patterns/Templating/Composition

link publish delete flag offensive edit

Comments

yes got it, thanks.

RetoH ( 2013-01-30 09:10:58 +0800 )edit

Please close the question

sjoshi ( 2013-02-05 10:33:42 +0800 )edit
0

answered 2013-02-05 10:29:44 +0800

RetoH gravatar image RetoH flag of Switzerland
44 5

Also see http://forum.zkoss.org/question/84777/are-processing-instructions-in-template-not-allowed-composition/ for more details on my final solution.

link publish delete flag offensive edit

Comments

and I must say something is seriously wrong with the link editing in this forum. i can't be bothered to fiddle with it until it works.

RetoH ( 2013-02-05 10:30:44 +0800 )edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-01-29 15:20:23 +0800

Seen: 44 times

Last updated: Feb 05 '13

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