Is it possible to change the /resources folder name which is used by h:outputStylesheet and h:outputScript

后端 未结 3 1473
栀梦
栀梦 2021-01-21 12:12

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

3条回答
  •  独厮守ぢ
    2021-01-21 13:10

    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

提交回复
热议问题