Can't load images from CSS

UI Components for JSF
Post Reply
klayshin
Posts: 2
Joined: 11 May 2010, 05:14

11 May 2010, 05:23

Hello,

I'm trying to load a CSS stylesheet from a facelets template with the following codeline:

Code: Select all

 <h:outputStylesheet library="css" name="conjunction.css" />
every style selector is applied correctly, except the following:

Code: Select all

body{ background: #B9B99D url(images/logoBar.jpg) repeat-x left top; }
Why is this happening? How can I fix it?

thanks

klayshin
Posts: 2
Joined: 11 May 2010, 05:14

11 May 2010, 05:34

BTW, I'm using PrimeFaces 2 and Glassfish ver. 3. Thanks. :?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

12 May 2010, 17:24

You need #{resource} in css, jsf can resolve #{resource} el expressions placed in a css file it loads.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests