[richfaces-issues] [JBoss JIRA] (RF-11475) Static resources must be served through ResourceServlet

Lukáš Fryč (Commented) (JIRA) jira-events at lists.jboss.org
Tue Oct 11 04:26:16 EDT 2011


    [ https://issues.jboss.org/browse/RF-11475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633735#comment-12633735 ] 

Lukáš Fryč commented on RF-11475:
---------------------------------

Brian, I have tried that:

{code}
ResourceHandler resourceHandler = facesContext.getApplication().getResourceHandler();
return resourceHandler.createResource(resourceName).getRequestPath();
{code}

It works simply with directly addressed resources (CSS/JS),
but images which are linked from CSS stylesheets are not dynamic

and similary to rich:editor resources, we can't handle suffix-based servlet mappings.
                
> Static resources must be served through ResourceServlet
> -------------------------------------------------------
>
>                 Key: RF-11475
>                 URL: https://issues.jboss.org/browse/RF-11475
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: core
>    Affects Versions: 4.1.0.Milestone3
>            Reporter: Lukáš Fryč
>            Assignee: Lukáš Fryč
>             Fix For: 4.1.0.Milestone3
>
>
> Static resources are served using standard JSF resource servlet.
> Since  their resources can't map to resource by FacesServlet mappings, they need to be served on known URL.
> For this feature, ResourceServlet mapped to /org.richfaces.resources/ can be used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list