0
I’m trying to change the theme of primefaces, downloaded all available themes using Maven and my web.xml file was like this:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name>evolutionary</display-name>
<display-name>evolutionary</display-name>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>blitzer</param-value>
</context-param>
</web-app>
The structure of my app is like this:
I have 2 web.xml files in the project: 1 is within Webcontent/WEB-INF. The other is in src/main/webapp/WEB-INF. What is configured is the second. This may influence?
If your project is Maven, you don’t need the Webcontent folder. Yes, in a Maven project the web.xml that goes to the application is what is inside the webapp/WEB-INF folder
– Jorge Campos