PrimeFaces is a very popular JSF component library, as it allows us to develop elegant and modern-looking web applications with little effort. To use PrimeFaces in our JSF applications, create a new Web Application project as usual. When selecting JavaServer Faces as a framework, click on the Components tab and click on the checkbox labeled PrimeFaces.
This step is depicted in the following screenshot:
Note
On selecting PrimeFaces as a JSF component library, you might see an attention message that says JSF library PrimeFaces not set up properly: Searching valid Primefaces library. Please wait... near the bottom of the window. Wait a few seconds, and the message should go away.
Right off the bat, NetBeans generates a PrimeFaces application that we can use as a starting point. We can immediately run the generated application to see it in action.
As we can see, the generated application is much more elegant than the JSF applications we developed...