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.
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.
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.