Hi Bob, Think of the element <t:layout> as a reference to your component, like calling a method. The same goes for using <t:textfield> or any of the other components, they just point to a component to run at that point of the page. You can think of the contents of that element as an intrinsic parameter to the component. The <t:body> element processes those contents, invoking any components that might be contained. This allows you to choose where in your layout html those contents are rendered.
A simpler, but related component might be one that rendered it's contents in a box with a black border. You could create the box component like this: Box.java (empty but currently required ) Box.tml <div style="border:thin black solid" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <t:body/> </div> Now within your other pages/components you could use it like this: <t:box>This is in a box</t:box> I hope this helps... Josh On 10/18/07, Heck, Bob <[EMAIL PROTECTED]> wrote: > > <t:layout> and <t:body> are in two separate files. How does that work? > > > > -----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] > > -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.