voyent
ace:dynamicResource  XML
Forum Index -> Components
Author Message
szabopeter

Joined: 12/May/2017 05:53:47
Messages: 3
Offline


Hi,

Does anybody know why the image path gets changed when the ace:dynamicResource UI control is rendered? The path is intact and the image is displayed fine in case of ace:graphicImage, however.

Source in jspx page:

<ace:dynamicResource resource="#{executionModel.resources[row.id]}"
mimeType="text/plain"
fileName="METAImport_#{row.projectCode}"
image="themes/mytheme/images/download_enabled.gif"
type="image"
scope="flash"/>

Rendered html component:

< img src="/fw/adminconsole/javax.faces.resource/themes/mytheme/images/download_enabled.gif.iface?v=4_1_0_160615" />

Many thanks,
Peter
mircea.toma

Joined: 10/Feb/2005 00:00:00
Messages: 323
Offline


The ace:dynamicResource follows the same format as a JSF resources when generating the URLs. By doing so the resources will be referenced correctly if deployed in a servlet container or portal.
[Email]
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team