
Obtain the necessary environment to start developing a PrimeFaces application. For this, we need to know what PrimeFaces is, what we will develop, and what do we need in order to start developing.
Our aim is to obtain a stub web application that involves PrimeFaces and JSF. For this, we will use the NetBeans stub projects, which are very helpful in this case.
Obtain a PrimeFaces theme. For this, download the specific local JAR files or add a Maven dependency and configure the obtained PrimeFaces theme.
The reader will start developing the application code. In order to do this, it is very useful to know what they will get in the final stage.
Create and adjust the look and feel of the PrimeFaces Layout component. Learn how to use the corresponding PrimeFaces tags and attributes to accomplish this task.
Create and adjust the look and feel of the PrimeFaces DataTable component. Learn how to use the corresponding PrimeFaces tags and attributes to accomplish this task.
Create and adjust the look and feel of the PrimeFaces Galleria component. Learn how to use the corresponding PrimeFaces tags and attributes to accomplish this task.
Create and adjust the look and feel of the PrimeFaces FileUpload component. Learn how to use the corresponding PrimeFaces tags and attributes to accomplish this task.
Start developing the server side of the application. In order to do this, we will write two empty classes that will be filled in the next upcoming videos.
Represent a photo using a name and status (selected or unselected). Write a POJO class named MyPhoto to map a photo's name and status.
Display photos in the data table. Iterate the photo folder and add photos in a list that will populate the data table.
Upload photos from a local computer to the server. Implement the procedure to interact with the FileUpload component and write the uploaded photos on the disk.
Notice how everything works. Test the application, upload some photos, and check the behavior of the data table and photo gallery.
The user should know whether his actions end up successfully or not. Use a PrimeFaces Growl component and FacesMessages.
The user should be aware that a request is under progress. Use a PrimeFaces AjaxStatus component.
The user should see the effects of Growl and AjaxStatus. Test the application.
This video course teaches you how to develop a complete web application using the PrimeFaces framework. The application shapes a virtual photo gallery, which is designed to cover a wide range of PrimeFaces features.
This video course has a simple structure. We start with an overview of PrimeFaces and then continue with the development of a complete web application. The application development starts by setting up a PrimeFaces theme and adding a page layout. We continue by adding the necessary PrimeFaces components (DataTable, Upload, Galleria, and so on). Once the components are in place, we focus on the server-side where we "give life" to these components. At the end, we perform some application tests and pull some final conclusions.
Rapid PrimeFaces is ready to take you into the PrimeFaces world where, as a JSF developer, you will find the perfect development environment for JSF-based applications.
Anghel Leonard is a senior Java developer with many years of experience in Java SE, Java EE, and related frameworks. He has written and published a significant number of articles about Java technologies as well as tips and tricks for many programming-dedicated websites. In addition, he has reviewed several books, JavaOne articles, and top-rated dissertations about Java. He has written two books about XML and Java (one for beginners and one for advanced developers) for Albastra, a Romanian publisher; four books for Packt Publishing, Jboss Tools 3 Developer Guide, JSF 2.0 Cookbook, JSF 2.0 Cookbook LITE, and Mastering JavaServer Faces 2.2; and two books for APress, Pro Java 7 NIO 2 and Pro Hibernate and MongoDB. Currently, he is developing web applications using the latest Java technologies on the market such as WebServices, JMS, EJB, CDI, Spring, JSF (PrimeFaces, OmniFaces and RichFaces frameworks), Struts, Vaadin, Hibernate, and so on.