Configure primefaces with eclipse

The following two tabs change content below.
Prasad Kharkar is a java enthusiast and always keen to explore and learn java technologies. He is SCJP,OCPWCD, OCEJPAD and aspires to be java architect.

Latest posts by Prasad Kharkar (see all)

Hello, We’ve seen how to create a hello world application in JSF2 with eclipse. Now, with its reference, we will configure primefaces with eclipse. Create the dynamic web project named PrimeFacesExamples

Well, there is nothing new to configure primefaces with eclipse. In the link mentioned above, our web application is configured with JSF using eclipse. Primefaces is built on JSF and it simply requires primefaces jar file to be included in the library of web application. Its the only effort needed to configure primfaces with eclipse in our web app. Include apache-commons-fileupload jar file in web app library. So now you have these two files in the web app library.

That’s it, primefaces setup is done for your app. Now we want to use primefaces components in a jsf page. Create index.xhtml as follows.

When you declare xmlns:p="http://primefaces.org/ui" , you are able to use any primefaces component. Deploy application under tomcat, start it and hit url http://localhost:8080/PrimeFacesExamples/faces/index.xhtml . You’ll be able to see the beautiful primefaces editor displayed on browser.

 

 

Share Button

Prasad Kharkar

Prasad Kharkar is a java enthusiast and always keen to explore and learn java technologies. He is SCJP,OCPWCD, OCEJPAD and aspires to be java architect.

8 thoughts on “Configure primefaces with eclipse

  • September 16, 2014 at 1:55 pm
    Permalink

    Where should I add index.xml? I mean to which catalog, to web-content -> web inf -> index.xml? I am completely new with this technology.
    Kind regards, Maria

    Reply
    • April 30, 2015 at 10:49 am
      Permalink

      You can place it……WEB_INFO-> lib ->web.xml

      Reply
  • September 16, 2014 at 2:13 pm
    Permalink

    Okey, now I know – under your previous tutorial is the answear. Btw very good tips and nice description.

    Reply
    • September 16, 2014 at 6:57 pm
      Permalink

      Hi Maria,
      I am glad you could work it out. Thanks for those good words and keep providing feedback so that I can improve.
      Happy learning 🙂

      Reply
  • November 25, 2014 at 3:07 pm
    Permalink

    Nice Article! it really help me on my project. Thank you Prasad!

    Reply
    • February 19, 2016 at 8:15 am
      Permalink

      Thanks for providing this vlubaale and quality content. Your writing style is impressive and unique. I enjoyed reading your article and agree on many points.

      Reply
  • June 19, 2017 at 12:23 pm
    Permalink

    why i cant download primeface library can anyone please help me to get it..
    Thank you..!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *