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/
-
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:
>
>
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
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");}
---