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

Andreas Owczarek updated RF-12523:
----------------------------------

         Labels: ajax4jsf  (was: richfaces)
    Environment: Windows 7 Professional, JBoss AS 6.1.0.Final, Mojarra 2.1.7  
(was: JBoss AS 6.1.0.Final, Mojarra 2.1.7)
    Component/s:     (was: component)
                     (was: component-a4j-core)
                     (was: base functionality )

    
> a4j:commandButton generates duplicated context path using a resource value 
> expression within image attribute
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-12523
>                 URL: https://issues.jboss.org/browse/RF-12523
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.2.2.Final, 4.3.0.Milestone1
>         Environment: Windows 7 Professional, JBoss AS 6.1.0.Final, Mojarra 
> 2.1.7
>            Reporter: Andreas Owczarek
>              Labels: ajax4jsf
>
> a4j:commandButton produces an extra context path prefix for the image 
> resource path, when it is used with the value expression 
> {code}#{resource['library:file']}{code} for the image attribute.
> {code:xml|title=Example code}
> <a4j:commandButton image="#{resource['icons:icon.gif']}" 
> value="#{resource['icons:icon.gif']}"/>
> {code}
> {code:xml|title=Generated Result code}
> <input type="image" 
> alt="/com.example.my.context.path/faces/javax.faces.resource/icon.gif?ln=icons"
>  
> src="/com.example.my.context.path/com.example.my.context.path/faces/javax.faces.resource/icon.gif?ln=icons"
>  
> value="/com.example.my.context.path/faces/javax.faces.resource/icon.gif?ln=icons"
>  
> onclick="RichFaces.ajax(&quot;j_idt76&quot;,event,{&quot;incId&quot;:&quot;1&quot;}
>  );return false;" name="j_idt76" id="j_idt76">
> {code}
> The generated code show the correct value for the expression within the 
> generated button label, but the image could not be located correctly because 
> of the wrong generated image resource path.

--
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