This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

image URLs

 
David Sheltby
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have the following directory structure:

webapp/
|--resources/css/theme.css
|--resources/css/images/images.png
|--template.xhtml
|--index.xhtml

The template has the following <hutputStylesheet library="css" name="theme.css" /> in the <h:head> tag, however none of the images defined in theme.css are loading. All the URL paths are relative (e.g. they start with "images/"). The only way I can get them to load is to make them absolute URL's. What should they be?

thanks
 
Vladimir Mokrozub
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
 
David Sheltby
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That works, except its not pretty. I also go it to work by changing them to:
Not really sure why that works though.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic