Hi DH,

thanks for your response. I missed that earlier discussion and t:container
indeed doesn't seem to offer a proper work-around for the lack of $content$
when using the Layout component pattern.

Does anyone know if something like $content$ will be added to T5 before the
stable release?

regards,

Onno


2008/4/2, 宁德辉 <[EMAIL PROTECTED]>:
>
> It looks like that T5 doesn't have such solution as $content$ in T4.
> It is discussed before.
> http://www.nabble.com/Writing-an-FAQ-for-Tapestry-5-to15719185.html#a15739812
> Even though the t:container element can't help.
>
> Thanks!
>
> DH
>
>
>
> ----- Original Message -----
> From: "Julien HENRY" <[EMAIL PROTECTED]>
> To: "Tapestry users" <users@tapestry.apache.org>
> Sent: Wednesday, April 02, 2008 6:49 PM
> Subject: Re : T5: Layout question
>
>
> Hi Onno,
>
> You don't need to do anything else. Everything outside of
> <div class="text-column" t:type="Border">
>                   Page content
> </div>
> will be discarded and the Layout component will be used instead. Is it not
> the case?
>
> Regards,
>
> Julien
>
> ----- Message d'origine ----
> De : Onno Scheffers <[EMAIL PROTECTED]>
> À : Tapestry users <users@tapestry.apache.org>
> Envoyé le : Mercredi, 2 Avril 2008, 11h26mn 58s
> Objet : T5: Layout question
>
> I created a Layout component called Border.
> According to the documentation, I have to setup my page something like
> this:
> <html t:type="Border" xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>    Page content
> </html>
>
> I want the template to be previewable though so the webdesigners can work
> with the pages more easily.
> For this I need some more markup around the page content that needs to be
> ignored when rendering the page. Thus something like this:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>    <body>
>       <div id="main">
>          <div id="content">
>             <div class="content-holder">
>                <div class="text-column" t:type="Border">
>                   Page content
>                </div>
>             </div>
>          </div>
>       </div>
>    </body>
> </html>
>
> Is there a way I can tell Tapestry to ignore all Markup outside of the
> Border component?
>
> regards,
>
> Onno
>
>
>
>
>
>
>       
> _____________________________________________________________________________
> Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact.
> http://mail.yahoo.fr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to