Allow relocation of library name / resource name using a Resource wrapper
-------------------------------------------------------------------------

                 Key: MYFACES-3355
                 URL: https://issues.apache.org/jira/browse/MYFACES-3355
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-314
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe


The renderers for h:outputScript and h:outputStylesheet assume that library 
name / resource name cannot be relocated. One possible example could be merge 
multiple js or css files into a single one, but only on production time. In 
theory it should be possible to write a custom Resource wrapper and a custom 
ResourceHandlerWrapper that check if the file was merged and replace the 
library name / resource name.

The solution is add an additional check, and mark the resource as rendered 
again but with the returned value of resource.getLibraryName() and 
resource.getResourceName()

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

        

Reply via email to