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

Martijn Dashorst resolved WICKET-3485.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-RC3
                   1.4.17

> 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

        

Reply via email to