all pages and components are technically consider the same thing within t5.
all components/pages wrap there content (what is between the tags....
<t:component/page>content<t:component/page>)
within the wrapping component template you specify a <t:body/> component.
This directs the template as to where to insert the body content.
ex:
border component
<html>
<head>...</head>
<body>
<t:header/>
<t:body/>
<t:footer/>
</body>
</html>
any page which you wanna use the border on
<t:border>
content
</t:border>
note how the border component calls a header and footer component to insert
at the top and bottom of the body.
~evan
----- Original Message -----
From: "Anujith Amaratunga" <[EMAIL PROTECTED]>
To: <users@tapestry.apache.org>
Sent: Wednesday, August 01, 2007 12:18 PM
Subject: Tap5 - integrate several templates
Hi,
How do I integrate several templates into one page? i.e I have a header
and
a footer which needs to go into all the pages, but I don't want to
duplicate
code in all pages. I've looked at the <body> element and embedded
components
but not sure if that's the way to go. Any help is much appreciated. I am a
newbie to tapestry 5.
Thx
Anu
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]