[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 14 10:12:33 EDT 2012


     [ https://issues.jboss.org/browse/RF-12476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ken Finnigan updated RF-12476:
------------------------------

       Fix Version/s: 4.2.3.CR1
    Git Pull Request: https://github.com/richfaces/components/pull/44  (was: https://github.com/richfaces/components/pull/44)

    
> 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
>            Assignee: Ken Finnigan
>              Labels: portlet
>             Fix For: 4.2.3.CR1, 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


More information about the richfaces-issues mailing list