you need to get to the rowIndex attribute like this:

<x:dataTable styleClass="mainTable"
                     var="auctionHolder"
                     value="#{currentAuctionList.auctionList}"
                     preserveDataModel="true"
                     rowIndexVar="rowIdx"
                     cellspacing="5">

and then do this in the column:

<x:column styleClass="#{rowIdx%2==0?'oddRow':'evenRow'}">

regards,

Martin

On 8/11/05, Enrique Medina <[EMAIL PROTECTED]> wrote:
I'm currently subscribed, so it's my fault...

However, from my _javascript_ solution I could use different colors for odd and even rows...

How can I do this with the new DataTable?

2005/8/11, Sean Schofield < [EMAIL PROTECTED]>:
Make sure to subscribe to the dev list and follow all of the JIRA
traffic there if you want to be ontop of the latest and greatest.
<t:dataTable> and related components like t:columns are changing
almost daily (for the better.)

For this feature see:

http://issues.apache.org/jira/browse/MYFACES-175

See also:

http://issues.apache.org/jira/browse/MYFACES-343

sean


Reply via email to