So... i managed to solve this problem with a few steps, i'll put here if there is no problem.
1 - If you manage to use Maven on your project, download maven software and install it and configure maven on your classpath. Go to the folder that you extracted the theme, and use the following command:
Code: Select all
mvn install:install-file -Dfile=barcelona-theme-1.0.jar -DgroupId=org.primefaces.themes -DartifactId=barcelona -Dversion=1.0 -Dpackaging=jar
Then execute this dependency on pom.xml
Code: Select all
<dependency>
<groupId>org.primefaces.themes</groupId>
<artifactId>barcelona</artifactId>
<version>1.0</version>
</dependency>
2 - Start a new project and on your pom add the dependency "barcelona" that we just created
3 - Add resources folder on your project looking like this (/resources/barcelona-layout/)
4 - Download a sass compiler on your pc, then navigate to the folder of your project and use this command:
Code: Select all
sass -w src/main/webapp/resources/ --sourcemap=none
5 - On your web.xml add the theme
Code: Select all
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>barcelona-blue</param-value>
</context-param>
6 - Don't forget the taglib
Code: Select all
<context-param>
<param-name>javax.faces.FACELETS_LIBRARIES</param-name>
param-value>/WEB-INF/primefaces-barcelona.taglib.xml</param-value>
</context-param>
7 - add template files that come on theme inside web-inf folder
Hope helps you and sorry for my bad english