Erik van Oosten wrote:


It does not work. I still see the spans in my output. Is it a bug? I am using wicket-kickstart 1.01.

This is my code:

       ListView menuComponent = new ListView("menuItems", menuItems) {
           @Override
           protected void populateItem(ListItem listItem) {
final MenuItem menuItem = (MenuItem) listItem.getModelObject();
               listItem.add(new Label("title", menuItem.getTitle()));
           }
       };
       menuComponent.setRenderBodyOnly(true);
       add(menuComponent);

   Erik.


It should be:

listItem.setRenderBodyOnly(true);

as the list items are the components that you are actually repeating / rendering.

Eelco



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to