In Tapestry (all versions) when you use the word "include" to
describe something, you should be thinking about components.

Either the header goes in your Border/Layout component, or you
make a header component which gets rendered in a Border.

The documentation for Tapestry's special t:body element is here:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html

Also, regarding your earlier confusion:

> 1.  I thought a layout component should start with t:layout, someone
> please clarify if the first block is actually a layout component.

Imagine you were writing a textfield component with its own template.
In the component's html/tml template, would you start with <t:textfield>?
No. That's almost like recursion: a Textfield starts with a Textfield?

In any template, <t:componentName> invokes the _use_ of componentName.

Cheers,
Nick.


Heck, Bob wrote:
Or, maybe I should just start at the top.

I have a header that I want to display on every page. That header html (tml) markup is stored in the file header.tml
How do I include this in another file, say hello.tml?  What is the syntax and 
component usage?



-----Original Message-----
From: Thiago H de Paula Figueiredo [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 12:17
To: Tapestry users
Subject: Re: Templates and t:body

On Thu, 18 Oct 2007 13:05:48 -0300, Heck, Bob <[EMAIL PROTECTED]> wrote:

So, how does layout.tml know to use specific.tml to fill in the <t:body/> tag? Does it have to be injected somehow? Where does it get a reference? How is this done?

<t:body> just renders whatever was put inside your <t:layout> tag. ;) The 
specific page uses the layout, not the inverse.


--
Thiago H. de Paula Figueiredo
Desenvolvedor, Instrutor e Consultor de Tecnologia Eteg Tecnologia da 
Informação Ltda.
http://www.eteg.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to