I guess the view is that using a span gives "safe" markup in any situation.
The disableLink() method can be overriden it if you need cleaner markup
in a particular situation.
Cassio wrote:
But it would change only the "<em>" and "</em>" default markups and not the
<span> that replace the <a> tag at
org.apache.wicket.markup.html.link.AbstractLink.disableLink(final
ComponentTag tag) method.
code:
// Change anchor link to span tag
tag.setName("span");
2009/7/24 Iain Reddick <iain.redd...@beatsystems.com>
The wrapping markup used can be set via methods in AbstractLink:
setAfterDisabledLink()
setBeforeDisabledLink()
or, you can set a default at application level:
setDefaultAfterDisabledLink()
setDefaultBeforeDisabledLink()
Cassio wrote:
Hello everybody!
Does anyone know for what reason an disabled auto link gets nested inside
a
span tag?
It's messing the page layout...
Thanks...
Cássio Landim Ribeiro
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org