If you associate your ListView with a <div> that wraps your two <li> elements, you can call item.setRenderBodyOnly(true) to suppress the <div> from the markup. The two inner <li>s will remain.
On Fri, Jul 19, 2013 at 10:34 AM, Victor Dolirio Ferreira Barbosa < [email protected]> wrote: > Hello Everybody, > > I got stuck in a situation that I could not resolve in a "graceful way" > yet. > > I have in my HTML a menu built with <ul> and <li> tags and it use a > "separator" concept. Like this: > > <ul> > <li class="separator"></li> > <li wicket:id="item" class="item">Admin</li> > > <li class="separator"></li> > <li class="item">Help</li> > </ul> > > What I want is to iterate a menu list in Java code with a Repeater but > grouping 2 li tags in a way that it outputs the tag with its separator > sibling. > > Its not possible to group them with another tag like a span or div, cause > HTML don't render it. > > I naively tried to group them with a <wicket:enclosure> but it not worked. > > What is the better way to do this? > > -- > []s, > Victor Dolirio > http://victordolirio.com >
