Mats Norén wrote:
Hmm...ok, so basically I have to litter my Java code with setRenderBodyOnly(true) instead. Well, I guess I can live with that. But it seems a bit weird that the default behaviour for a label is to leave the span tag. Anyway, thanks for the tip.
Actually, a better way might be to write an IVisitor implementation that walks the component tree and calls setRenderBodyOnly(true) for particular component types (e.g. Label components).
The problem is that most often you want to keep the surrounding div, etc. and it's difficult to tell which behaviour you'll want on a global basis.
Maybe we should provide some way to remove <span> tags that don't have any attributes?
Al ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user