Re: [Wicket-user] adding class to listview

2006-10-17 Thread Erik van Oosten
If you want to maintain existing classes, you'd better use: item.add(new AttributeAppender("class", new Model("foo"), " ")); Erik. Igor Vaynberg schreef: > item.add(new SimpleAttributeModifier("class", "foo")); > > -Igor -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ -

Re: [Wicket-user] adding class to listview

2006-10-17 Thread Eelco Hillenius
item.add(new SimpleAttributeModifier("class", "foo")); ? Eelco On 10/17/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > I'm using a listview to output an ordered list. I would like to add a class > to my li programatically. I don't see a way to do that using the ListView > > simple template: > >

Re: [Wicket-user] adding class to listview

2006-10-17 Thread Igor Vaynberg
item.add(new SimpleAttributeModifier("class", "foo"));-IgorOn 10/17/06, Ryan Sonnek < [EMAIL PROTECTED]> wrote:I'm using a listview to output an ordered list.  I would like to add a class to my li programatically.  I don't see a way to do that using the ListView simple template:    text goes here

[Wicket-user] adding class to listview

2006-10-17 Thread Ryan Sonnek
I'm using a listview to output an ordered list.  I would like to add a class to my li programatically.  I don't see a way to do that using the ListView simple template:    text goes here code:populateItem(Item item) {   //how to add a class to this li?   item.addClass("foo");} ---