[ 
https://issues.jboss.org/browse/RF-12476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716759#comment-12716759
 ] 

Brian Leathem commented on RF-12476:
------------------------------------

Summary of a discussion with [~kenfinni] in IRC:
{quote}
The image is successfully retrieved in the servlet showcase, but not the 
portlet showcase.  In the servlet showcase, the url to the image is:
http://showcase.richfaces.org/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.2.Final/PackedCompressed/blueSky/org.richfaces.images/menu_item_bg.gif.png
* the actual filename ends with _.gif.png_
* contextmenu.css and dropdownmenu.css currently have menu_item_bg.gif.png and 
menu_list_bg.gif.png
* mapping properties maps from menu_item_bg.gif to file of 
menu_item_bg.gif.png, same with menu_list
{quote}

the suggested fix is to drop the superfluous ".gif" all around - in the 
filesystem, the css, and the mapping file.
                
> Resource Name in mapping for two menu images is incorrect
> ---------------------------------------------------------
>
>                 Key: RF-12476
>                 URL: https://issues.jboss.org/browse/RF-12476
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: resource handling
>    Affects Versions: 4.2.2.Final
>            Reporter: Ken Finnigan
>              Labels: portlet
>             Fix For: 4.3.0.Milestone2
>
>
> Two image urls in packed.css, contextmenu.css and dropdownmenu.css are 
> referenced as:
> {code:xml}
> url(../org.richfaces.images/menu_item_bg.gif.png)
> url(../org.richfaces.images/menu_list_bg.gif.png)
> {code}
> However, the mapping file at 
> /META-INF/richfaces/staticResourceMapping/Packed.properties contains the 
> following entries:
> {code:xml}
> org.richfaces.images\:menu_item_bg.gif=org.richfaces.staticResource/4.2.2.Final/Packed/%skin%/org.richfaces.images/menu_item_bg.gif.png
> org.richfaces.images\:menu_list_bg.gif=org.richfaces.staticResource/4.2.2.Final/Packed/%skin%/org.richfaces.images/menu_list_bg.gif.png
> {code}
> Stepping through the RF Resource code it's possible to see that it's trying 
> to retrieve a resource with name "menu_item_bg.gif.png" from the URL, but 
> there is no resource name specified in the mapping to match, so a null 
> Resource is returned.
> If I manually updated the Packed.properties file by adding .png to the 
> resource name as below:
> {code:xml}
> org.richfaces.images\:menu_item_bg.gif.png=org.richfaces.staticResource/4.2.2.Final/Packed/%skin%/org.richfaces.images/menu_item_bg.gif.png
> org.richfaces.images\:menu_list_bg.gif.png=org.richfaces.staticResource/4.2.2.Final/Packed/%skin%/org.richfaces.images/menu_list_bg.gif.png
> {code}
> then the Resource is correctly retrieved.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to