JSF 2 RichFaces 4 Example

RichFaces is an UI component framework for integrating Ajax capabilities into JSF web applications. In this tutorial, we are going to use some of RichFaces features in a JSF 2 web application to build a registration form.   1. Technologies used JSF…

Monitoring Java application with AspectJ and JAMon

JAMon (Java Application Monitor) is a Java API used to monitor the performance of Java applications. Aspect-oriented programming (AOP) is a way of modularizing crosscutting concerns, such as monitoring, logging, error handling, ..etc. AspectJ is an implementation of aspect-oriented programming for…

Spring MVC data binding list example

In this tutorial, we will see how to perform data binding to a list; we are going to map fields in a page form to a list elements in a form backing object.   1. Technologies used Spring 4.2.0.RELEASE Maven 3.0.5 Eclipse 4.4 JDK 1.7 Tomcat…

JSF 2 Hello World using Maven

JavaServer Faces (JSF) is a standard Java framework for building user interfaces for Java Web applications. It combines an MVC design approach with a standard component based UI development framework. In this tutorial, we will create our first JSF 2 application using…

Struts 2 Default Interceptors Example

  In Struts 2, interceptor is a component that can be plugged in easily to add more processing to the action objects. An interceptor is applied to an action and must be registered in the configuration file. An interceptor runs before…

Hibernate CRUD example using HQL

Hibernate Query Language (HQL) is an object query language provided by Hibernate to manipulate data held in databases. It is inspired by SQL but instead of working directly with tables It uses persistent objects. In this example, we will perform some useful…

Spring Security Resources Access Control

In this example, we will use Spring Security to secure application resources so they can be accessed only by users with the required authorities. The resources, in our case, will be XHTML pages.   1. Technologies used Spring Security 3.2.5.RELEASE JSF 2.2.8 MySQL…