primefaces Getting started with primefaces Installing PrimeFaces

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!


PrimeFaces can be used in all web applications based on Java Server Faces (version 2.x) which are run on Servlet Containers (e.g. Wildlfy or Tomcat or GlassFish).

There are several ways you can add PrimeFaces to your application.


Download the primefaces-{version}.jar and add it to you classpath.



For older versions (3.5 and below) you additionally have to add the PrimeFaces repository:

    <name>PrimeFaces Maven Repository</name>  


repositories {
        maven {
            url ""

dependencies {
    compile "org.primefaces:primefaces:{version}"


PrimeFaces is bundled with the Java EE bundle of NetBeans. When you create a new "Java Web -> Web Application" you can select JavaServer Faces as framework. Then you configure JSF to use PrimeFaces components. It will copy the library to your project.

If you have created a Maven web application, you can select project properties and select JavaServer Faces as framework and then select PrimeFaces as mentioned above. Your pom.xml will be modified to include the PrimeFaces dependency.

Got any primefaces Question?