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

graphicImage tag does not handle resource EL expressions properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.0-alpha
    • JSR-314
    • None

    Description

      two problems that need to be resolved.

      FIrst is that ResourceResolver when handling resource['library:resourceName'], was passing the parsed arguments in backwards to ResourceHandler.createResource. It should have been name, library, but we were passing library,name.

      Second problem is that we were prepending the context root twice due to multiple calls to getResource when the value attribute was a resource EL expression. First during the createResource call from ResourceResolver, and then again in the image renderer. Added a check for ResourceHandler.RESOURCE_IDENTIFIER constant prior to calling getResourceURL so we don't add it twice in the EL case.

      Attachments

        Activity

          People

            mconcini Michael Concini
            mconcini Michael Concini
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: