On Fri, 27 Jan 2012 15:03:22 -0200, Julien Martin <bal...@gmail.com> wrote:

Hello,

Hi!

I would like to have a <title> tag defined in my app main/root template
(Layout.tml) and ensure that in each of the *.tml files that use that
template or one of its sub-templates, the content of the title is replaced by an appropriate value.

For this specific scenario wouldn't it be better and easier to just add <title>${title}</title> and @Parameter private String title; in your layout?

I have tried using the xmlns:p="tapestry:parameter" to no avail.

What exactly happened? Could you please post your template and class? Without them, we cannot help, just guess.

Should I use *t:content* instead?

Absolutely no. You need to use blocks and block parameters.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to