To use PrimeFaces in our project, we simply need to create a Java Web application project as usual. When we pick the JavaServer Faces Framework, we need to click on the Components tab and select PrimeFaces 2.2.1 as our component suite.
When our project is created, NetBeans will add the required libraries to our project, PrimeFaces tags will autocomplete in our project's JSF pages.
When selecting PrimeFaces as our JSF component suite, NetBeans creates a sample page using PrimeFaces components when our project is created. The markup for the file looks like this:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<title>Facelet Title</title>
</h:head>...