add the attribute modifier to the ITEM instead of the list. Martijn
On 12/1/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote: > It is indeed a ListView. > Which is attached to an UL-tag > > Ted > > > 2006/12/1, Erik van Oosten <[EMAIL PROTECTED]>: > > Hi Ted, > > > > I see that the component is called 'list'. > > If it is a ListView (or similar) you should also read the FAQ entry on > > > http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html. > > > > Regards, > > Erik. > > > > > > Ted Roeloffzen wrote: > > > list.add (new AttributeModifier("class", new Model() { > > > public Object getObject(final Component component) > > > { > > > String cssClass; > > > if(isHorizontal) > > > { > > > cssClass = "menuItemsHorizontal"; > > > } else { > > > cssClass = "menuItemsVertical"; > > > } > > > return cssClass; > > > } > > > })); > > > > > > This is almost exactly the same as the example i got from Erik. > > > > > > Ted > > > > -- > > Erik van Oosten > > http://www.day-to-day-stuff.blogspot.com/ > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys - and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > -- <a href="http://www.thebeststuffintheworld.com/vote_for/wicket">Vote</a> for <a href="http://www.thebeststuffintheworld.com/stuff/wicket">Wicket</a> at the <a href="http://www.thebeststuffintheworld.com/">Best Stuff in the World!</a> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user