[richfaces-issues] [JBoss JIRA] Created: (RF-10560) icon attribute does not support JSF 2.0 'resource' implicit object

Martin Kočí (JIRA) jira-events at lists.jboss.org
Thu Feb 17 15:08:13 EST 2011


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

                 Key: RF-10560
                 URL: https://issues.jboss.org/browse/RF-10560
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: compatibility, core
    Affects Versions: 4.0.0.Milestone6
         Environment: richfaces 4 trunk
            Reporter: Martin Kočí


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)



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list