Is it necessary to give the folder name "resources" when making the reference of a css file and js file in h:outputStylesheet
and h:outputScript
It is the way that the Resource Handler has been implemented in JSF 2.0, by default it will look at the following two path:
1) /resources under the root of the web application.
2) /META-INF/resources when packaged in an external JAR on the classpath.
If you want to use a different name, As mentioned by Alexandre, use the and
tags or write your own Resource Handler.
More info:
Ryan Lubke's blog entry on JSF 2.0 Resource API
JSF 2.0 spec