Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3355

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.10, 2.1.4
    • JSR-314
    • None

    Description

      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()

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: