Book Image

Java EE 7 Development with NetBeans 8

By : David R Heffelfinger
5 (1)
Book Image

Java EE 7 Development with NetBeans 8

5 (1)
By: David R Heffelfinger

Overview of this book

Table of Contents (18 chapters)
Java EE 7 Development with NetBeans 8
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using PrimeFaces components in our JSF applications


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...