yes, the rowIndex attribute is quite handy for such things.

we shouldn't forget about the rowClasses attribute for simple things as well, though... you can stay with the standard for the simple stuff.

regards,

Martin

On 8/11/05, Sean Schofield <[EMAIL PROTECTED]> wrote:
Nice!  I hadn't thought of that.

BTW, I'm going to add a JIRA issue on a new t:dataTable attribute:
rowId.  This will allow you to use EL to determine the id of the <TR>
element.  This will be helpful right?

sean



On 8/11/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> 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