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

    RF3.x How to load image from jar ?

    gonzalad

      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 :

      {code:xml}

      <h:commandButton action="#{editerChargeClienteleAction.edit}"

          image="#{request.contextPath}/images/action_modifier.png"/>

      {code}

      I move action_modifier.png to the CLASSPATH.

         

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

      {code:xml}

      <h:commandButton action="#{editerChargeClienteleAction.edit}"

          image="resource:///action_modifier.png"/>

      {code}

       

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

       

      Thanks !