[
https://issues.apache.org/jira/browse/TOMAHAWK-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Kitching reopened TOMAHAWK-1266:
--------------------------------------
This patch breaks t:stylesheet.
When JspViewHandlerImpl.getResourceURL is passed an absolute path (ie one
starting with slash) it returns a value prefixed with the webapp context path.
When passed a relative path, it does nothing.
So with this change that strips the leading slash from the stylesheet path,
this call:
context.getApplication().getViewHandler().getResourceURL(context, path);
no longer adds the webapp context into the generated href attribute.
> t:stylesheet renders link to an empty page on tomcat-5.5.24 and above
> ---------------------------------------------------------------------
>
> Key: TOMAHAWK-1266
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1266
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Stylesheet
> Affects Versions: 1.1.5
> Environment: linux, tomcat, myfaces-1.1.5, tomahawk-1.1.5
> Reporter: Ronald Müller
> Assignee: Leonardo Uribe
> Fix For: 1.1.7-SNAPSHOT
>
> Attachments: StyleTest.war
>
>
> on tomcat-5.5.24 and above (also 6.0.x) t:stylesheet with filter-attribute
> set to 'true' renders a style-link that links to an empty page. without
> filtering everything works fine since t:stylesheet renders direct links to
> the css-files (not using the extension-filter).
> maybe this issue is related to the extension filter or it is a tomcat-issue
> only. since it definitely happens first time with tomcat-version 5.5.24.
> (5.0.x-5.5.23 working fine).
> i'll provide a minimal test-case as war-file. just deploy and request
> 'http://localhost:8080/StyleTest/styletest.faces'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.