5 Replies Latest reply on May 27, 2011 11:19 AM by Kike Gil

    Problem with tag h:graphicImage and background-image in the styleClass

    Stefano Barretta Newbie

      Hi guys,

      I have a problem with images in my application.

      When I put on my page text.xhtml

      <h:graphicImage id="test" styleClass="imgOK" />




      . imgOK {
      background-image: url (.. / img / tik.gif);
      background-repeat: no-repeat;
      width: 50px;
      height: 50px;


      I get this result:


      but if I insert the url in the attribute like this

      <h:graphicImage id="test" value="img/tik.gif" />

      everything works


      I discovered that the problem occurs only with the tag <h:graphicImage> or <img>

      everything works with the <div> or a <rich:modalPanel> with the attribute class and styleClass and background-image.



      a bug of RichFaces?

      I'm developing under Webspheare Application server 6.1 Jsf 1.1 and Richfaces 3.1.6 G.A

      and Internet Explorer 8 but the same problem occurs on Google Chrome