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!

Example

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.

Manually

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

Maven

<dependency>  
    <groupId>org.primefaces</groupId>  
    <artifactId>primefaces</artifactId>  
    <version>{version}</version>  
</dependency>

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

<repository>  
    <id>prime-repo</id>  
    <name>PrimeFaces Maven Repository</name>  
    <url>http://repository.primefaces.org</url>  
    <layout>default</layout>  
</repository>

Gradle

repositories {
    mavenCentral()
        maven {
            url "http://repository.primefaces.org"
        }
}

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

NetBeans

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?