Title: RE: Tomahawk dataTable dubt. How to handle each row differently

Hi Sergio,

Try something like this in the rowStyleClass attribute. You can assign na style that has display:none when a property is true or false.

 <t:dataTable id="resultTable"
                value="#{ILList.dataList}"
                binding="#{ILList.dataTable}"
                var="il"
                rowId="rowId"
                rowIndexVar="indx"
                rowOnClick="clickRow(this, #{indx});"
                styleClass="resultgrid"
                rows="10"
                headerClass="secondtitle"
                rowClasses="table-odd-row, table-even-row"
                rowStyleClass="#{il.selected ? 'table-highlight-row' :
null}"
                rendered="#{!empty ILList.dataList}">

Att
Rogério

-----Original Message-----
From: Sergio Flor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2006 10:37 AM
To: [email protected]
Subject: Tomahawk dataTable dubt. How to handle each row differently

Hi all, I'm currrently develping a simple web page that shows informations through a tomahawk dataTable.

I'd like to don't render a single row of my table when, for instance, a property of my currentObject be false.

Ps.: I can't remove this entry from my collection before rendering my page because when I'm going to save this collection in the database, this record shall be persisted even so not rendered on my page.

Thanks and best regards.

Sergio Flor.



"Essa  mensagem é  destinada  exclusivamente ao seu destinatário e pode
conter informações confidenciais, protegidas por sigilo profissional ou
cuja  divulgação  seja  proibida por  lei. O uso não autorizado de tais
informações  é   proibido  e  está   sujeito  às  penalidades cabíveis.

This message is intended exclusively for its addressee and may  contain
information that  is  confidential  and  protected  by  a  professional
privilege or whose disclosure is prohibited by law. Unauthorized use of
such  information is  prohibited and subject to  applicable penalties."

Reply via email to