[richfaces-issues] [JBoss JIRA] (RF-12476) Resource Name in mapping for two menu images is incorrect
Ken Finnigan (JIRA)
jira-events at lists.jboss.org
Fri Sep 7 14:12:32 EDT 2012
[ https://issues.jboss.org/browse/RF-12476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ken Finnigan updated RF-12476:
------------------------------
Description:
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.
was:
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}
{code}
> 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)
> Affects Versions: 4.2.2.Final
> Reporter: Ken Finnigan
>
> 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
More information about the richfaces-issues
mailing list