You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Stanton <pa...@mapshed.com.au> on 2010/06/07 10:41:45 UTC
multiple layout components
Hi list,
I have an application that needs multiple levels of common layout markup.
I'm sure this is possible but can't figure out how to get it to work via
tap5.1
For example (very much simplified), I need BaseLayout.tml like so:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
xmlns:p="tapestry:parameter">
<body>
<center>
<t:body />
</center>
</body>
</html>
and GroupLayout.tml like so:
<html type="baselayout" xmlns="http://www.w3.org/1999/xhtml"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
xmlns:p="tapestry:parameter">
<b>
<t:body />
</b>
</html>
then a page that uses the GroupLayout:
<html type="grouplayout" xmlns="http://www.w3.org/1999/xhtml"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
xmlns:p="tapestry:parameter">
hello world
</html>
and the result should be (minus extra html)
<html><body><center><b>hello world</b></center></body></html>
Hopefully from the example (which doesn't work in that the <b> tags are
missing) you can see what i'm trying to achieve. Does anyone know how to
accomplish this?
sorry for the cryptic post.
p.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: multiple layout components
Posted by Paul Stanton <pa...@mapshed.com.au>.
Hi Chris,
Sorry I had made a mistake .. you are right, my simplified example
should have worked.
Regards, p.
Christophe Cordenier wrote:
> Hi
>
> Your exemple should work, does your GroupLayout.java extends the base one ?
>
> A concrete exemple is available at
> http://github.com/robink/wooki/tree/master/src/main/java/com/wooki/components
> with
> BookLayout and Layout components.
>
> 2010/6/7 Paul Stanton <pa...@mapshed.com.au>
>
>
>> Hi list,
>>
>> I have an application that needs multiple levels of common layout markup.
>>
>> I'm sure this is possible but can't figure out how to get it to work via
>> tap5.1
>>
>> For example (very much simplified), I need BaseLayout.tml like so:
>>
>> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:t="
>> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
>> xmlns:p="tapestry:parameter">
>> <body>
>> <center>
>> <t:body />
>> </center>
>> </body>
>> </html>
>>
>> and GroupLayout.tml like so:
>>
>> <html type="baselayout" xmlns="http://www.w3.org/1999/xhtml" xmlns:t="
>> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
>> xmlns:p="tapestry:parameter">
>> <b>
>> <t:body />
>> </b>
>> </html>
>>
>> then a page that uses the GroupLayout:
>>
>> <html type="grouplayout" xmlns="http://www.w3.org/1999/xhtml" xmlns:t="
>> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
>> xmlns:p="tapestry:parameter">
>> hello world
>> </html>
>>
>> and the result should be (minus extra html)
>>
>> <html><body><center><b>hello world</b></center></body></html>
>>
>> Hopefully from the example (which doesn't work in that the <b> tags are
>> missing) you can see what i'm trying to achieve. Does anyone know how to
>> accomplish this?
>>
>> sorry for the cryptic post.
>>
>> p.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
>
>
Re: multiple layout components
Posted by Christophe Cordenier <ch...@gmail.com>.
Hi
Your exemple should work, does your GroupLayout.java extends the base one ?
A concrete exemple is available at
http://github.com/robink/wooki/tree/master/src/main/java/com/wooki/components
with
BookLayout and Layout components.
2010/6/7 Paul Stanton <pa...@mapshed.com.au>
> Hi list,
>
> I have an application that needs multiple levels of common layout markup.
>
> I'm sure this is possible but can't figure out how to get it to work via
> tap5.1
>
> For example (very much simplified), I need BaseLayout.tml like so:
>
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
> xmlns:p="tapestry:parameter">
> <body>
> <center>
> <t:body />
> </center>
> </body>
> </html>
>
> and GroupLayout.tml like so:
>
> <html type="baselayout" xmlns="http://www.w3.org/1999/xhtml" xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
> xmlns:p="tapestry:parameter">
> <b>
> <t:body />
> </b>
> </html>
>
> then a page that uses the GroupLayout:
>
> <html type="grouplayout" xmlns="http://www.w3.org/1999/xhtml" xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
> xmlns:p="tapestry:parameter">
> hello world
> </html>
>
> and the result should be (minus extra html)
>
> <html><body><center><b>hello world</b></center></body></html>
>
> Hopefully from the example (which doesn't work in that the <b> tags are
> missing) you can see what i'm trying to achieve. Does anyone know how to
> accomplish this?
>
> sorry for the cryptic post.
>
> p.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Regards,
Christophe Cordenier.
Developer of wooki @wookicentral.com