Hi Martinj, i only want to do it for empty <div>'s - not any other tag. So how can I strip out any empty <div>-tag without hurting used ones?
> If you *really* want to do this, why not create a visitor > that calls setRenderBodyOnly on your child components? how would I do this? Regards > -----Ursprüngliche Nachricht----- > Von: Martijn Dashorst [mailto:[EMAIL PROTECTED] > Gesendet: Sonntag, 27. Mai 2007 22:46 > An: [email protected] > Betreff: Re: wicket 1.3.0 snapshot / wicket tags in div > > On 5/27/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > > > hmm, makes sense - there is no global way to get rid of > these empty div's ? > > (putting a .setRenderBodyOnly(true) to every seems quite a pain) > > I really don't know why you want to do this: > > <td wicket:id="foo">[foo]</td> > > <tr wicket:id="foo"><td wicket:id="bar"></td></tr> > > new ListView("foo", ...) { > protected void populateItem(Item item) { > item.add(new Label("bar", "bar")); > } > } > > should this remove the tags too? > > If you *really* want to do this, why not create a visitor > that calls setRenderBodyOnly on your child components? > > Martijn > > -- > Join the wicket community at irc.freenode.net: ##wicket > Wicket 1.2.6 contains a very important fix. Download Wicket now! > http://wicketframework.org >
