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

Leonardo Uribe commented on TOMAHAWK-1266:
------------------------------------------

I have run myfaces-example-simple with jetty (mvn clean jetty:run). The 
stylesheet code says:

<t:stylesheet path="/css/table.css" filtered="true" />

The output link is encoded as (look the two slashes near the end):

/myfaces-example-simple/faces/extensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12142411/stylesheet.TextResourceFilterProvider//css/table.css

The resource on this address is not available, but on (just one slash):

/myfaces-example-simple/faces/extensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12142411/stylesheet.TextResourceFilterProvider/css/table.css

Is here.

One solution is encode correctly the link, sending the path without slash.



> 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