MyFaces Core
  1. MyFaces Core
  2. MYFACES-3355

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.10, 2.1.4
    • Component/s: JSR-314
    • Labels:
      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()

        Activity

        Leonardo Uribe created issue -
        Leonardo Uribe made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.10 [ 12317870 ]
        Fix Version/s 2.1.4 [ 12317868 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Leonardo Uribe
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development