This tutorial highlights the new features added as part of the PrimeFaces 5 release. PrimeFaces 5 has been announced and shipped with set of new components. We’ve published set of tutorials that covered the PrimeFaces 4 earlier in our blog. To summarize, PrimeFaces 5 comes up with set of new components and lot of minor enhancements …
JSF
PrimeFaces Charts – Pie Chart + Ajax Behavior Events Example
ItemSelect is one and only ajax behavior event of charts, this event is triggered when a series of a chart is clicked. In case you have listener defined, it’ll be executed by passing an org.primefaces.event.ItemSelectEvent instance. This tutorial has added a listener on that RegistrationBean that already exposed in the Primefaces Pie tutorial. The listener that being added should list the …
PrimeFaces + EclipseLink / JPA + MongoDB Integration
This tutorial explains the PrimeFaces + JPA + MongoDD integration. We are going to create a Pie Chart application using the PrimeFaces component library with the additional software JPA and MongoDB for the persistence mechanism. Before writing any snippet of code, you should have a proper installation and configuration for both the database (MongoDB) and the …
PrimeFaces Collector Example
Collector is a simple utility to manage collections declaratively, collector requires a collection and a value to work with. It’s important to override equals and hashCode methods of the value object to make collector work. Even you would be adding a certain object into list of the same type of that object, however, you have …
PrimeFaces ColorPicker Example
ColorPicker is an input component with a color palete, where it’s value should be a hex string. ColorPicker has two modes, default mode is popup and other available option is inline. Inline mode displays the picker directly into the view. 1. ColorPicker Tag Info 2. ColorPicker Tag Attributes 3. The View index.xhtml 4. Managed Bean ColorPicker.java …
PrimeFaces Clock Example
Primefaces provides a time component for taking the time from the user by using the Clock component. Clock displays server or client date time live. When it comes for displaying the server time, the Clock component provides AutoSync feature in server mode that can sync the clock with the server periodically. 1. Clock Tag Info 2. Clock Tag Attributes 3. The View index.xhtml …
PrimeFaces Captcha Example
Captcha (Completely Automated Public Turing test to tell Computers and Humans Apart) is a type of challenge response test used in computing to determine whether or not the user is a human. PrimeFaces had provided such a component when the first version released. The component tag is <p:captcha/>. Captcha is implemented as an input component with a built-in validator that …
PrimeFaces Button Example
One of the component that already extended by the Primefaces is the p:button, which extends the basic functionality of h:button. p:button usage is same as standard h:button, an outcome is necessary to navigate using GET requests, but Primefaces has added some minimal extra features such as skinning. Also, p:button has supported the icon rendering via style …