Re: Re: Alternate row colours again

2006-07-04 Thread Sam Gendler
Don't forget that html does allow multiple classes to be assigned to an element, so another way to solve it is to just construct a string containing multiple class names in the method referenced by the class binding. You can still use the EvenOdd bean, but you must call next() on it yourself, and

Re: Alternate row colours again

2006-07-03 Thread Nick Westgate
Hi Peter. It looks like you are using some kind of variable called rowClass, so in this case you could use two such variables. Something like: class="ognl:(rowIndex % 2) == 0 ? rowClassEven : rowClassOdd" where rowIndex is an int property passed to the Foreach index param. Or you can do someth