Change theme of primefaces

0

I'm trying to change the theme of primefaces, I downloaded all available themes using maven and my web.xml file looked 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 looks like this:

I have 2 web.xml files in the project: 1 is inside WebContent / WEB-INF. The other is in src / main / webapp / WEB-INF. What is set is the second. Can this influence?

    
asked by anonymous 02.06.2016 / 02:01

1 answer

1

I think so, but for me it worked like this:

The theme should be changed in web.xml as you already did but in the WebContent/WEB-INF directory,
 and you should also have downloaded PrimeFaces in the

WebContent/WEB-INF/lib
    
29.04.2017 / 06:39