1 Reply Latest reply on Jul 2, 2008 5:27 PM by dgreenbean

    Load image from JAR using xcss

    dgreenbean

      Hi,

      I am trying to set the backgrounds of my hyperlinks to be an image that is contained in a JAR. Is there any way to do this? What I have below does not work:

      <?xml version="1.0" encoding="UTF-8" ?>
      
      <f:template xmlns:f="http://jsf.exadel.com/template"
       xmlns:u="http://jsf.exadel.com/template/util"
       xmlns="http://www.w3.org/1999/xhtml">
      
       <f:verbatim><![CDATA[
       ]]></f:verbatim>
      
       <u:selector name="a">
       <u:style name="background-image" value="resource://test.gif" />
       </u:selector>
      
      </f:template>
      


      Thanks,
      David


        • 1. Re: Load image from JAR using xcss
          dgreenbean

          Never mind. It appears that the following works:

           <u:selector name="a">
           <u:style name="background-image">
           <f:resource f:key="test.gif" />
           </u:style>
           </u:selector>
          


          I thought I had tried this, but I guess I didn't.

          Thanks anyway,
          David

          P.S. I was working with 3.2.1.GA.