Let's say I have a ListView with this markup:

<span wicket:id="links">
    <span wicket:id="delimiter">|</span>
    <a href="#" wicket:id="link">
          <span wicket:id="linkText">[[Linktext]]</span>
     </a>
</span>

and this Java Code:

ListView paragraphs = new ListView("links", contentsToDisplay)
{
    protected void populateItem(ListItem item)
    {
        Content content = (Content) item.getModelObject();

         Label delimiter = new Label("delimiter", " | ");
         delimiter.setVisible(item.getIndex() > 0);
         item.add(delimiter);

         Link contentLink = getContentLink("link", content.getId());
         Label linkText = new Label("linkText", content.getTitle());
         linkText.setRenderBodyOnly(true);

         contentLink.add(linkText);
         item.add(contentLink)
            }
};
paragraphs.setRenderBodyOnly(true);
add(paragraphs);

Even though I use setRenderBodyOnly on the ListView I still get the  for
each list item that is rendered. Is it possible to create a ListView so that
only the Markup of the ListItems is rendered? 

-- 
View this message in context: 
http://www.nabble.com/ListView-only-ListItem-markup-with-setRenderBodyOnly-tp16386233p16386233.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to