Monitoring Undertow thread pools

Finding out the runtime metrics of Undertow thread pool can be done through the JMX API. Let’s see how to do it. Undertow web server is based on XNIO. The XNIO project provides a thin abstraction layer over Java NIO. In particular it provides two core functionalities: Channel API Management of IO and Worker threads … Read more

Configuring Predicates and Exchange with Undertow

Predicates and Exchange attributes are an Undertow component which allow you to manipulate your HTTP request and even make complex decisions on it, without hardcoding this into an Undertow Handler. You can configure Predicates and Exchange attributes through a set of expression filters. The expressions you can use can also be combined with boolean operators … 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

Develop powerful Serverside Javascript with UndertowJS

Today I’m going to write about Undertow.js which provides Server Side Javascript to WildFly application server. Nowadays many Javascript Frameworks like AngularJS and BackboneJS make it easier to create a single page web application. They structure the JavaScript code and offer a toolset of important functions to boost the development of applications. Rendering the application … Read more

Build a RESTful application using jqGrid

This tutorial shows how you can build up an Enterprise application using jQuery and jqGrid plugin on the client side and REST Web services deployed on WildFly application server. Let’s start building the server side at first. Our SimpleRESTService contains two methods only: getPersonList which retrieves a list of Person Entity using a JPA Query … 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