Mats Norén schrieb:
Hmm...ok, so basically I have to litter my Java code with
setRenderBodyOnly(true) instead.

Create a subclass and use that.


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.

A label can be applied to any tag. It would be very confusing to me if the label component removed it´s associated tag.

I think the problem is that one always needs a tag for each component. This means that you have to add spans in the markup just to be able to insert text.

It's not very pretty.


Timo


Anyway, thanks for the tip.

On 2/20/06, Alastair Maw <[EMAIL PROTECTED]> wrote:
Mats Norén wrote:
Stupid question,
but is it possible to remove the actual span-tags from the output?

getMarkupSettings().setStripWicketTags(true);

removes the wicket:ids and the other wicket tags, but is it possible
to remove the span tags for a label?

My output looks almost like the font hell from early Frontpage days,
it's completely littered with span tags :)

/Mats
You can call setRenderBodyOnly(true) on the Component for your span tag.

Or I suppose one could write a rendering filter that removed all span
tags that didn't have any attributes set on them, but that would be a
bit horrid.

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



-------------------------------------------------------
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=k&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
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

Reply via email to