I have a css file in this directory:
D:\JavaProjects\MyGuessNumber\web\resources\css\bootstrap.css
And in my index.xhtml file I have:
<h:outputStylesheet library="css" name="bootstrap.css" />
When I run this application as:
localhost:8080/MyGuessNumber
the css file loads just fine.
When I use:
http://localhost:8080/MyGuessNumber/faces/index.xhtml
the css is still there.
But when I do:
http://localhost:8080/MyGuessNumber/index.xhtml
the page loads, but no css? How I can I make this work?
Edit: I am using: /faces/*