Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-10560

icon attribute does not support JSF 2.0 'resource' implicit object

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Milestone6
    • Fix Version/s: 4.0.0.CR1
    • Component/s: compatibility, core
    • Labels:
      None
    • Environment:

      richfaces 4 trunk

      Description

      for example:
      r:menuItem icon="#

      {resource['images:user.gif']}

      "

      rendered HTML will contain src=/webAppRoot/webAppRoot/faces/javax.faces.resource/user.gif?ln=images" - the context root is renderer twice.

      Reason: RenderKitUtils.getResourceURL(String, FacesContext) appends the extra prefix.

      Right now I have no time for patch but I did it already twice: for myfaces and trinidad
      https://issues.apache.org/jira/browse/MYFACES-2531
      https://issues.apache.org/jira/browse/TRINIDAD-1638

      Feel free to copy it - important methods are:
      org.apache.myfaces.shared.renderkit.RendererUtils.getIconSrc(FacesContext, UIComponent, String)
      org.apache.myfaces.shared.renderkit.RendererUtils.toResourceUri(FacesContext, Object)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nbelaevski Nick Belaevski
                Reporter:
                markoc50 Martin Kočí
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: