Are you using a gif image?  Is using transparency an option?

M@

-----Original Message-----
From: Ken Clark [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 18, 2007 2:50 PM
To: [email protected]
Subject: Need to switch image depending on odd or even row in datatable



I have a t:datatable which is declared as:

<l:dataTable id="order_view"
             var="order"
             value="#{orderTable.dataModel}"
             first="#{orderTable.pageHandler.firstRowIndex}"
             rows="#{orderTable.noOfRows}"
             styleClass="dataTable"
             rowClasses="odd,even">

The odd and even styleclasses work fine.  However, I have an image on
each
row, and because the background color changes, I need to use 2 different
icons.

How can I go about defining the output such that it uses a different
icon
depending on whether the row is odd or even?

Thanks,
ken

-- 
View this message in context:
http://www.nabble.com/Need-to-switch-image-depending-on-odd-or-even-row-
in-datatable-tf3941849.html#a11180728
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Reply via email to