[ 
https://issues.apache.org/jira/browse/WICKET-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102093#comment-13102093
 ] 

Pedro Santos commented on WICKET-4039:
--------------------------------------

Componet#urlFor, getResponse, getRequest, etc, are only an facade API. The 
framework doesn't even use it everywhere, so open it for extensions can lead 
some inconsistencies.
Even if you want to implement the URL logic per component inside its class, 
would make more sense to provide a custom request mapper testing components for 
some interface like IKnowMyUrl.

> Make Component#urlFor non-final
> -------------------------------
>
>                 Key: WICKET-4039
>                 URL: https://issues.apache.org/jira/browse/WICKET-4039
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Maarten Billemont
>
> My use case is that I want to add an anchor to the URL generated for my Page, 
> each time.  its urlFor would be an excellent place to do this, unfortunately 
> it is final.  Which, to me, makes no sense whatsoever, because there's no 
> point to its existence with it being final.  It doesn't use the instance's 
> state, it just delegates to other static methods.  So why does 
> Component#urlFor exist if it's not to give the developer an opportunity to 
> intervene and inject custom behavior?
> I hereby propose the urlFor methods become non-final.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to