On Tue, 19 Oct 2010 08:08:07 -0200, ael <alan-lua...@dash.com.ph> wrote:
Sorry i will made it clear.
Page Class
@Property
private TableSource sourceA;
public List<TableSource> getSource(){
return List<TableSource>;
}
Template
<t:loop source="Source" value="sourceA" >
{$sourceA.value}
</t:loop>
public String getValue() {
if (sourceA.value == 1) {
return "OK";
}
else {
return "Not OK";
}
}
<t:loop source="Source" value="sourceA">
${value}
</t:loop>
What you want is logic and logic belongs to component and page classes,
not in the template. ;)
--
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