1

When I was linking the Css file using the following tagline

<h:outputStylesheet library="css" name="style.css" target="body"/>

and I have the arranged directory structure as WebContent->resources->css->style.css and I was getting result code on browser as <link type="text/css" rel="stylesheet" href="RES_NOT_FOUND" />

But when I have changed the file name to styles.css, it worked but I didn't get the reason that what was the problem with style.css.

ritesh
  • 2,245
  • 2
  • 25
  • 37

1 Answers1

1

The problem is how you have set your resource files inside your project. Since this looks to be your actual folder structure:

resources
- css
  - style.css

You have to call your CSS file like this:

<h:outputStylesheet name="css/style.css" />

More info:

Community
  • 1
  • 1
Luiggi Mendoza
  • 85,076
  • 16
  • 154
  • 332