Something like this oughta work....
protected Item newRowItem(String id, int index, IModel model)
{
Item item = super.newRowItem(String id, final int index, IModel model);
item.add(new AttributeModifier("class", true, new
AbstractReadOnlyModel<String>() {
return index % 2 == 0 ? "even" : "odd";
});
return item;
}
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Oct 27, 2009 at 11:17 AM, sakthi vel <[email protected]> wrote:
> protected Item newRowItem(String id, int index, IModel model)
> {
> return new OddEvenItem(id, index, model);
> }
>