0 Replies Latest reply: Oct 11, 2011 6:24 AM by gonzalad RSS

RF3.x How to load image from jar ?

gonzalad Apprentice

Hello,

 

I'm using RF 3.3.3.

 

I would like to show an image from a jar in my html page.

 

For the moment, I serve the image from src/main/webapp :

<h:commandButton action="#{editerChargeClienteleAction.edit}" 
    image="#{request.contextPath}/images/action_modifier.png"/>

 

I move action_modifier.png to the CLASSPATH.

   

I've then tried using resource:/// prefix, but it doesn't work.

<h:commandButton action="#{editerChargeClienteleAction.edit}" 
    image="resource:///action_modifier.png"/>

 

 

Is there some other way (a RF function I'm missing ?)

 

Thanks !