You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Thomas Cucchietti <th...@gmail.com> on 2010/02/04 16:41:48 UTC
[T5]Multiple templates for a page
Hello everybody,
is there a mean to have several different templates for a single page?
A bit like it's the case for localization (with templates suffixed like
myPage_de.tml, myPage_fr.tml), but depending on other parameters.
Thanks in advance.
Thomas.
Re: [T5]Multiple templates for a page
Posted by cordenier christophe <ch...@gmail.com>.
Hi
I have used the third locale parameter : variant associated to an
identification filter.
Regards,
Christophe.
Developer of wooki @wookicentral.com
2010/2/4 Thomas Cucchietti <th...@gmail.com>
> Ok, it could be what I needed.
>
> Thanks for the information Thiago, I'll give it a try and make a feedback
> in
> case.
>
> 2010/2/4 Thiago H. de Paula Figueiredo <th...@gmail.com>
>
> > On Thu, 04 Feb 2010 13:41:48 -0200, Thomas Cucchietti <
> > thomas.cucchietti@gmail.com> wrote:
> >
> > Hello everybody,
> >>
> >
> > Hi!
> >
> >
> > is there a mean to have several different templates for a single page?
> >>
> >
> > Not directly.
> >
> >
> > A bit like it's the case for localization (with templates suffixed like
> >> myPage_de.tml, myPage_fr.tml), but depending on other parameters.
> >>
> >
> > Easier way: create a component for each different template and then use
> > blocks <t:block> and the Delegate component to render one of them.
> There's
> > one similar example in
> > http://tapestry.apache.org/tapestry5.1/cookbook/switch.html.
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> > and instructor
> > Owner, software architect and developer, Ars Machina Tecnologia da
> > Informação Ltda.
> > http://www.arsmachina.com.br
> >
> > ---------------------------------------------------------------------
> > 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
Re: [T5]Multiple templates for a page
Posted by Thomas Cucchietti <th...@gmail.com>.
Ok, it could be what I needed.
Thanks for the information Thiago, I'll give it a try and make a feedback in
case.
2010/2/4 Thiago H. de Paula Figueiredo <th...@gmail.com>
> On Thu, 04 Feb 2010 13:41:48 -0200, Thomas Cucchietti <
> thomas.cucchietti@gmail.com> wrote:
>
> Hello everybody,
>>
>
> Hi!
>
>
> is there a mean to have several different templates for a single page?
>>
>
> Not directly.
>
>
> A bit like it's the case for localization (with templates suffixed like
>> myPage_de.tml, myPage_fr.tml), but depending on other parameters.
>>
>
> Easier way: create a component for each different template and then use
> blocks <t:block> and the Delegate component to render one of them. There's
> one similar example in
> http://tapestry.apache.org/tapestry5.1/cookbook/switch.html.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, software architect and developer, Ars Machina Tecnologia da
> Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: [T5]Multiple templates for a page
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 04 Feb 2010 13:41:48 -0200, Thomas Cucchietti
<th...@gmail.com> wrote:
> Hello everybody,
Hi!
> is there a mean to have several different templates for a single page?
Not directly.
> A bit like it's the case for localization (with templates suffixed like
> myPage_de.tml, myPage_fr.tml), but depending on other parameters.
Easier way: create a component for each different template and then use
blocks <t:block> and the Delegate component to render one of them. There's
one similar example in
http://tapestry.apache.org/tapestry5.1/cookbook/switch.html.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org