You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2007/08/01 00:22:20 UTC

Re: T5 layout

It is not yet possible; it is a feature to be added. Not sure of the JIRA
number.

On 7/31/07, Chris Lewis <ch...@bellsouth.net> wrote:
>
> Hello all,
>
> I've seen several threads about T5 and layout components, but still none
> that show how to duplicate the functionality of $content$ in Tap 4. My
> layout works as long as the page templates include only their body (ie,
> no <html>, <head>, <body>). I liked $content$ in 4 because I could have
> normal-ish page templates and then tell Tap to pay attention to only
> what fell within $content$. So now my layout is:
>
> layouts/General.html:
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>         <head>
>                 <title>test layout</title>
>         </head>
>         <body>
>                 <t:body/>
>         </body>
> </html>
>
> And a page:
>
> Login.html:
> <div t:type="layouts/General" xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>         <form t:type="BeanEditForm" object="authRequest"
> submitlabel="message:login.submit.label">
>                 login form here
>         </form>
> </div>
>
> I don't like that in Login.html I can't have <html> (etc) without having
> those elements duplicated in the resulting page. Is there a way around
> this?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

Re: T5 layout

Posted by Chris Lewis <ch...@bellsouth.net>.
Thanks Howard - its quite a nice feature. Godspeed with the rest of Tap5.

Chris

Howard Lewis Ship wrote:
> It is not yet possible; it is a feature to be added. Not sure of the JIRA
> number.
>
> On 7/31/07, Chris Lewis <ch...@bellsouth.net> wrote:
>   
>> Hello all,
>>
>> I've seen several threads about T5 and layout components, but still none
>> that show how to duplicate the functionality of $content$ in Tap 4. My
>> layout works as long as the page templates include only their body (ie,
>> no <html>, <head>, <body>). I liked $content$ in 4 because I could have
>> normal-ish page templates and then tell Tap to pay attention to only
>> what fell within $content$. So now my layout is:
>>
>> layouts/General.html:
>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>>         <head>
>>                 <title>test layout</title>
>>         </head>
>>         <body>
>>                 <t:body/>
>>         </body>
>> </html>
>>
>> And a page:
>>
>> Login.html:
>> <div t:type="layouts/General" xmlns:t="
>> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>>         <form t:type="BeanEditForm" object="authRequest"
>> submitlabel="message:login.submit.label">
>>                 login form here
>>         </form>
>> </div>
>>
>> I don't like that in Login.html I can't have <html> (etc) without having
>> those elements duplicated in the resulting page. Is there a way around
>> this?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>     
>
>
>