[
https://issues.apache.org/jira/browse/WICKET-4904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508823#comment-13508823
]
Sven Meier commented on WICKET-4904:
------------------------------------
IMHO we should just get rid of this 'feature' and let people use a behavior for
that: #beforeRender, #onComponentTag and #afterRender can do that perfectly
fine. Removing the "href" attribute should stay in Link though.
We could offer a default implementation that rebuilds the old mangling (i.e.
<em><span /></em>).
> Introduce IDisableLinkStrategy that decides how to disable a link
> -----------------------------------------------------------------
>
> Key: WICKET-4904
> URL: https://issues.apache.org/jira/browse/WICKET-4904
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 6.3.0
> Reporter: Martin Grigorov
> Priority: Minor
> Fix For: 7.0
>
> Attachments: WICKET-4904.patch
>
>
> Currently Wicket transforms <a> tag to <span><em> when a link is disabled.
> Recently Wicket-Bootstrap user filed issue
> https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/79 that this breaks the
> UI because Twitter Bootstrap needs just 'disabled="disabled"' attribute in
> <a>.
> With the new strategy it will be possible to set global strategy and override
> it per link.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira