Em Thu, 12 Nov 2009 11:27:56 -0200, Durgesh_Kab <durgesh.ka...@nuware.com> escreveu:

Hi,

Hi!

I am working on a migration of project, which is using Tapestry4, and i am upgrading it to Tapestry5.

You'll love it. :)

It was using below ognl expression at tr level inside the grid as below:
<tr jwcid="tableRows" style="ognl:row.id?'display:none;':'display:;'">
where as in Tapestry5, i do not have control over tr in grid, as:
<table t:id="rowGrid">

You can use Grid's rowClass parameter to define which class will be given to the <tr> tag.

Template:

<table t:type="Grid" t:rowCclass="trClass" t:row="object" ...>

Page class:

public String getTrClass() {
        return object.getId() != null ? null : "hide";
}

CSS:

tr.hide {
        display: none;
}

--
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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to