Thiago,

Thank you for showing me the way... I was able to hide the rows..

Now, I have a hyperlink as [+], I want to show the hidden rows once i click
on this hyperlink. Any idea?

@ DK


Thiago H. de Paula Figueiredo wrote:
> 
> 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
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Customizing-tapestry-grid-row-%3Ctr%3E-tp26318657p26333615.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to