[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607544#action_12607544
 ] 

Simon Kitching commented on TOMAHAWK-1266:
------------------------------------------

Ok, I've found the real cause of this issue.

The AddResource.getResourceUri(context, Class, String, bool) method is designed 
specifically for serving resources out of the tomahawk jarfile *relative to a 
tomahawk component class*. So of course it only expects relative urls.

It is really an abuse of this API to use it to serve resources out of the 
webapp root. Hence the problem.

I'm working on a patch for this now.

> 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: stylesheet-patch.txt, 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.

Reply via email to