On Mon, 12 Dec 2011 12:33:43 -0200, Marcelo da Silva <marcelo.marc...@gmail.com> wrote:

I am trying to pass a property to the name attribute of t: parameter, like
this:

<t:parameter name="prop:firstPropertyName">
    ...
</ t: parameter>
-----
public String getFirstPropertyName() {
    return model.getPropertyNames().get(0) + "Cell";
}

But this is not working, is there any way to do this work? Or is there an
alternative?

Hi, Marcelo!

Tapestry template structure is completely static, rendering is dynamic. As a consequence, block names (including <t:parameter>) are static and you cannot use expressions on them.

Why don't you always add a first BeanModel property just to have this link?

--
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