Monday, 1 August 2016

Adding PrimeFaces Into Your JSF Project

Hello everybody!

To start working with PrimeFaces, you should first download "primefaces-6.0.jar" from this link. There will be elite and community versions. You will want the community version.


After downloading it to your computer, create a new dynamic project as you always do. Then simply go to your project folder and navigate to "ProjectName\WebContent\WEB-INF\lib", then move the jar file here.

Let's try if it will work by creating index.xhtml file and testing a PrimeFaces component in it. You will notice we add PrimeFaces namespace to the top of the file.


Running the application you will see the screen below.

Hope to see you in the next blog post!

Selen

No comments:

Post a Comment