]
Brian Leathem updated RF-12476:
-------------------------------
Labels: portlet (was: )
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: