You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/06/13 14:09:20 UTC

[jira] [Resolved] (WICKET-4904) Use a behavior that modifies AbstractLink's markup when disabled

     [ https://issues.apache.org/jira/browse/WICKET-4904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4904.
-------------------------------------

    Resolution: Fixed

org.apache.wicket.markup.html.link.AbstractLink#getDisablingBehavior() is introduced.
With this method each AbstractLink instance can control how to render itself when disabled.

By default org.apache.wicket.markup.html.link.DisableLinkBehavior is used that uses AbstractLink#getBeforeDisabledLink and AbstractLink#getAfterDisabledLink to prepend/append additional markup and changes the <a> to <span>
                
> Use a behavior that modifies AbstractLink's markup when disabled
> ----------------------------------------------------------------
>
>                 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
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 7.0.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