I hope this will help you. In this code I am checking for deviceAvailable property. You can change according to your requirement.

<display:table class="searchResultTable" id="skuData" name="skuSearchResult" export="true" pagesize="50" requestURI="/sku/search.do">

<bean:define id="classStyle" value="searchResultTableData"/>

<bean:define id="deviceAvailable" name="rowData" property="deviceAvailable"/>

<logic:equal name="deviceAvailable" value="true">

      <bean:define id="classStyle" value="searchResultTableData"/>

</logic:equal>

<logic:equal name="deviceAvailable" value="false">

      <bean:define id="classStyle" value="searchResultTableDataHighLight"/>

</logic:equal>

<display:column headerClass="searchResultTableHeader" class="" titleKey="<%=columnHeader.toString()%>">

                        <div class="<%=classStyle%>"><bean:write name="rowData" property="columnValue1"/></div>

      </display:column>

</display:table>

 

--VJ


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mas Qutbuddin
Sent: Wednesday, October 26, 2005 10:13 AM
To: [email protected]
Subject: RE: [displaytag-user] how do i change color of a row based on status_code field in my table

 

Thankyou for your reply!!!!!!!!!!!!!!

 

how do I change a particular row with a different color ???/

 

Do u have nay sample code

 

MQ

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vijay Kallepalli
Sent: Wednesday, October 26, 2005 11:05 AM
To: [email protected]
Subject: RE: [displaytag-user] how do i change color of a row based on status_code field in my table

I posted the same issue some time back in this mailing list. The answer was not possible to have control on individual row. I manipulated and displayed the text in a particular row with a different color rather than changing the row background color.

 

VJ

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mas Qutbuddin
Sent: Tuesday, October 25, 2005 9:24 PM
To: [email protected]
Subject: [displaytag-user] how do i change color of a row based on status_code field in my table

 

hello,

 

how do i change color of a row based on status_code field in my table

 

for example :
when displaying the table using display tag if row no 5 has status_code "d" ; I need to show that row or column as red in background color but the other rows in white background

 


Thankyou

Reply via email to