1 Reply Latest reply on Aug 14, 2010 5:38 AM by berndpixel

    css image urls and contextpath

    berndpixel

      Hello,

       

      I use a jquery plugin which has its own css files.

      I am using JSF 1.2 and load the css file with a4j:loadStyle.

       

      There are different links to images like

      background-image:url("page_elements/bar_top_middle.gif");

       

      But the picture is not found. If I add the contextpath, the picture is found.

      background-image:url("/myapp/page_elements/bar_top_middle.gif");

       

      How can I resolve this problem?

      I don't want to search all extarnally provided css files and change the links to images.

      If the context path is changed, e.g by a customer, the links break again.

       

      Bernd