How to populate a dataTable from a JSON file

How to use natively JSON data into a JSF dataTable ? When using Primefaces you have more than one option to do it! The JSF dataTable tag is used to display data on JSF view pages. The data bound table components are responsible for displaying the relational data in a tabular format. typically a dataTable … Read more

JSF Drag and Drop with Primefaces

 In this tutorial we will learn how to perform Drag & Drop in your JSF applications using PrimeFaces library. Drag & Drop with PrimeFaces Drag-and-drop is an action, meaning grabbing an object and dragging it to a different location. Components capable of being dragged and dropped enrich the Web and make a solid base for … Read more

Creating a DataScroller with Primefaces

In this tutorial you will learn how to use a Primefaces DataScroller to let your application load additional set of Data as you scroll down the Web page (on Demand scrolling). This component is available since Primefaces 5. The structure of the component dataScroller is quite similar to a dataTable. The key attribute of it … Read more

Dynamic PrimeFaces detail forms

In my last post – Dynamic PrimeFaces Datatables –     I have explained how to use Java Reflection to dynamically generate PrimeFaces DataTables. In this article we are going to use the same technique to create dynamic detail forms. In our following examples we will use the DynaForm component of the PrimeFacex Extensions project. As you … Read more

Dynamic PrimeFaces Datatables

In this post I will explain how to use Java Reflection to extract PrimeFaces models from POJO classes. Specifically we will create a dynamic DataTable using the p:columns component.  Setup Using reflection could be quite tediuos, luckily for us theres the Apache Commons BeanUtils API. This library helps us to dynamically read the properties of our … Read more

Extending PrimeFaces: AJAX

This is the last of a series of posts (Extending PrimeFaces components is the first one, here the second one) with the purpose of explaining how to use PrimeFaces as an API to create new JSF components. Our main focus in this article is to add AJAX listeners to our components. The component that we are going … Read more

Extending PrimeFaces components

  The purpose of this post is to show how we can use PrimeFaces base classes to create new custom components. In a nutshell we will see how to extend PrimeFaces. We will do that by developing a simplified version of the PrimeFaces Extensions Analogclock. Let’s start with the component class: @FacesComponent(value = AnalogClock.COMPONENT_TYPE) @ResourceDependencies({ … Read more

HelloWorld Primefaces

This tutorial shows how to get started quickly with Primefaces with a basic Hello World example that will be deployed on WildFly application server.  This tutorial is broken in two parts: the first one is an hello world example of Primefaces developed using Eclipse and downloading the library manually. The second helloworld example is engineered … Read more

Develop mobile Java EE applications using Primefaces

In this tutorial we will learn how to develop a simple Web application for Mobile devices using PrimeFaces mobile extension as JSF API. Today mobile Web traffic is dramatically on the rise, and creating a smooth mobile experience is at the top for every Web master. In spite of slow networks, mobile users expect a … Read more