[
https://issues.apache.org/jira/browse/WICKET-3485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martijn Dashorst closed WICKET-3485.
------------------------------------
> Link tries to construct the URL when the link is disabled
> ---------------------------------------------------------
>
> Key: WICKET-3485
> URL: https://issues.apache.org/jira/browse/WICKET-3485
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.4.15, 1.5-RC2
> Reporter: Emond Papegaaij
> Assignee: Martijn Dashorst
> Priority: Minor
> Fix For: 1.4.17, 1.5-RC3
>
>
> This piece of code (Link.onComponentTag) tries to construct the URL for a
> Link, even when it is disabled:
> CharSequence url = getURL();
> url = appendAnchor(tag, url);
> if (!isLinkEnabled())
> disableLink(tag);
> else
> { use url }
> getURL fails for us, because we did not expect it to be called for a disabled
> link. The constructed url is never used. Can the getURL and appendAnchor be
> moved inside the else?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira