You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Ertl (JIRA)" <ji...@apache.org> on 2011/09/07 14:24:10 UTC

[jira] [Commented] (WICKET-4030) HeaderResponse.renderCSSReference does not render context path relative url, but wicket filter url-pattern relative url

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

Peter Ertl commented on WICKET-4030:
------------------------------------

@Matteo: Indeed the current javadoc is wrong. The rendering happens relative to wicket filter root both in current wicket release 1.4.18 and 1.5.0. I sent a mail to the developer mailing list to clarify that issue. Currently the solution will be to properly escape the filter path with '..' to access context relative resources.


> HeaderResponse.renderCSSReference does not render context path relative url, but wicket filter url-pattern relative url
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4030
>                 URL: https://issues.apache.org/jira/browse/WICKET-4030
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-RC7
>            Reporter: Matteo Sotil
>            Assignee: Peter Ertl
>            Priority: Minor
>         Attachments: quickstart.zip
>
>
> In an application with a wicket filter url-pattern different than /*, if you use HeaderResponse.renderCSSReference(String url), where url is a context-path-relative url (css/main.css, for example), the generated css link is not context relative, but wicket url-pattern relative.

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