You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by marcanti <ma...@yahoo.com> on 2009/07/21 11:01:52 UTC
How to create a Layout and have multiple insertion points.
On the tapestry documentation about Layouts, it is stated that the only
insertion point in the Layout template is at the <t:body/>. How can I have
mulitple insertion points, something like "include" functionality in jsf?
--
View this message in context: http://www.nabble.com/How-to-create-a-Layout-and-have-multiple-insertion-points.-tp24584083p24584083.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: How to create a Layout and have multiple insertion points.
Posted by marcanti <ma...@yahoo.com>.
Thanks for the tip.
Why is this not documented in the tapestry website?
I must say that the lack of documentation for Tapesty 5 makes it hard to
start using it.
Hope it gets better otherwise I guess many developers will chose another web
framework...
Juan E. Maya wrote:
>
> The base tapestry project created by the maven archetype uses
> parameter and a block as Emmanuel told you. u may take a look at it if
> u still need an example.
>
> On Tue, Jul 21, 2009 at 11:27 AM, De Saint Steban
> Emmanuel<em...@atosorigin.com> wrote:
>> By creating parameters and give block
>>
>> <t:layout sidebarleft="blockSidebar1" sidebarRight="blockSidebar2" >
>> // here principal content
>> </t:layout>
>>
>>
>> In your layout, you will print it like a variable ${sidebarleft} (using
>> get and set in the .java file)
>>
>>
>>
>> -----Message d'origine-----
>> De : marcanti [mailto:mario_luis_gomes@yahoo.com]
>> Envoyé : mardi 21 juillet 2009 11:02
>> À : users@tapestry.apache.org
>> Objet : How to create a Layout and have multiple insertion points.
>>
>>
>> On the tapestry documentation about Layouts, it is stated that the only
>> insertion point in the Layout template is at the <t:body/>. How can I
>> have
>> mulitple insertion points, something like "include" functionality in jsf?
>
>
--
View this message in context: http://www.nabble.com/How-to-create-a-Layout-and-have-multiple-insertion-points.-tp24584083p24587557.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: How to create a Layout and have multiple insertion points.
Posted by "Juan E. Maya" <ma...@gmail.com>.
The base tapestry project created by the maven archetype uses
parameter and a block as Emmanuel told you. u may take a look at it if
u still need an example.
On Tue, Jul 21, 2009 at 11:27 AM, De Saint Steban
Emmanuel<em...@atosorigin.com> wrote:
> By creating parameters and give block
>
> <t:layout sidebarleft="blockSidebar1" sidebarRight="blockSidebar2" >
> // here principal content
> </t:layout>
>
>
> In your layout, you will print it like a variable ${sidebarleft} (using get and set in the .java file)
>
>
>
> -----Message d'origine-----
> De : marcanti [mailto:mario_luis_gomes@yahoo.com]
> Envoyé : mardi 21 juillet 2009 11:02
> À : users@tapestry.apache.org
> Objet : How to create a Layout and have multiple insertion points.
>
>
> On the tapestry documentation about Layouts, it is stated that the only
> insertion point in the Layout template is at the <t:body/>. How can I have
> mulitple insertion points, something like "include" functionality in jsf?
> --
> View this message in context: http://www.nabble.com/How-to-create-a-Layout-and-have-multiple-insertion-points.-tp24584083p24584083.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
> Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.
>
> This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: How to create a Layout and have multiple insertion points.
Posted by De Saint Steban Emmanuel <em...@atosorigin.com>.
By creating parameters and give block
<t:layout sidebarleft="blockSidebar1" sidebarRight="blockSidebar2" >
// here principal content
</t:layout>
In your layout, you will print it like a variable ${sidebarleft} (using get and set in the .java file)
-----Message d'origine-----
De : marcanti [mailto:mario_luis_gomes@yahoo.com]
Envoyé : mardi 21 juillet 2009 11:02
À : users@tapestry.apache.org
Objet : How to create a Layout and have multiple insertion points.
On the tapestry documentation about Layouts, it is stated that the only
insertion point in the Layout template is at the <t:body/>. How can I have
mulitple insertion points, something like "include" functionality in jsf?
--
View this message in context: http://www.nabble.com/How-to-create-a-Layout-and-have-multiple-insertion-points.-tp24584083p24584083.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org