ICEfaces
  1. ICEfaces
  2. ICE-6063

<ice:graphicImage> Incorrect Path Processing for JSF2.0 Resources

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Glassfish 3.0.1
    • Workaround Exists:
      Yes
    • Workaround Description:
      Use a plain HTML <img> or <h:graphicImage>.

      Description

      When using a <ice:graphicImage> to render an image resource by passing corresponding EL as the value attribute, the root folder of the path (in this case the project name) is duplicated. This was noticed during testing of the easyPopup component.

      <ice:graphicImage value="#{resource['images/tabs:popupclose.gif']}">
      produces an image tag with the src attribute:
      "/YACS/YACS/javax.faces.resource/popupclose.gif.jsf?ln=images/tabs"

      while the EL alone renders as:
      "/YACS/javax.faces.resource/popupclose.gif.jsf?ln=images/tabs"


      ice:graphicImage as expected, cannot find the resource.
      h:graphicImage is unaffected.

        People

        • Assignee:
          Deryk Sinotte
          Reporter:
          Nils Lundquist
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: