Re: Grouping tags in a ListView without a parent tag
Hi Victor Also, wicket:container is designed for for purpose Best regards, Sebastien. On Fri, Jul 19, 2013 at 7:42 PM, Dan Retzlaff wrote: > If you associate your ListView with a that wraps your two > elements, you can call item.setRenderBodyOnly(true) to suppress the > from the markup. The two inner s will remain. > > > On Fri, Jul 19, 2013 at 10:34 AM, Victor Dolirio Ferreira Barbosa < > victor...@gmail.com> 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 and tags and it use a > > "separator" concept. Like this: > > > > > > > > Admin > > > > > > Help > > > > > > 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 but it not > worked. > > > > What is the better way to do this? > > > > -- > > []s, > > Victor Dolirio > > http://victordolirio.com > > >
Re: Grouping tags in a ListView without a parent tag
If you associate your ListView with a that wraps your two elements, you can call item.setRenderBodyOnly(true) to suppress the from the markup. The two inner s will remain. On Fri, Jul 19, 2013 at 10:34 AM, Victor Dolirio Ferreira Barbosa < victor...@gmail.com> 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 and tags and it use a > "separator" concept. Like this: > > > > Admin > > > Help > > > 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 but it not worked. > > What is the better way to do this? > > -- > []s, > Victor Dolirio > http://victordolirio.com >
Grouping tags in a ListView without a parent tag
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 and tags and it use a "separator" concept. Like this: Admin Help 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 but it not worked. What is the better way to do this? -- []s, Victor Dolirio http://victordolirio.com