Faces Flow tutorial

This tutorial discusses about Faces Flow which is an addition to Java Server Faces 2.2, included in the Java EE 7 stack. Faces Flow has been inspired by the popular Spring Flow framework and as such it is not intended to be a replacement for the Web application navigation system; rather Faces Flow can be … Read more

Categories JSF

JSF custom tags using Java classes

This is the second tutorial about creating JSF custom tags. In this one we will show how to create Java based JSF custom tags. Creating a custom Java based JSF tag in the early JSF 1.2 specification required pretty a lot of work and several configuration files to be handled. We will now show how … Read more

Categories JSF

JSF custom tag tutorial

In this tutorial we will show how to create JSF custom tags based on content defined in an XHTML page. Creating custom JSF tags can be done either by means of Java classes implementing the UIComponentBase interface or by means of XHTML code fragments. In this tutorial we will show the latter option. Creating a … Read more

Categories JSF

Installing JSF 2.2 on JBoss AS 7

In this tutorial we will demonstrate how to install the JSF 2.2 API (part of the Java EE 7 specification) on JBoss AS 7. Java EE 7 is almost on the way, featuring several interesting new features. After some changes, the JSF 2.2 specification will include the following so-called Big Tickets: Sensible HTML 5 support  … Read more

Categories JSF

Develop Custom JSF Converters

In this tutorial we will show how to create a CDI search-powered Combo box which uses a JSF Converter to render the Objects in the Combo in text format and back into objects for processing. Populating a combobox with a list of labels and values has been always a time consuming task for every developers. … Read more

Categories JSF

Storing data in your JSF 2.0 application

In this tutorial we will compare the available options for storing Object data into a Web application, showing at first the core JSF 2 scopes and the extension provided by CDI. Core JSF scopes JSF 2.0 specification defines the following scope scopes for storing data: @RequestScoped@ViewScoped@SessionScoped@ApplicationScoped@CustomScope Using the Request scope is quite straightforward: all you … Read more

Categories JSF

JSF ViewScoped tutorial

JSF ViewScoped tutorial The @ViewScoped has been introduced by JSF 2.0 specification. In a nutshell the data which is @ViewScoped will keep living as long as you don’t navigate to another pagee to itself. The view scope is very convenient, since it allows the pattern of initializing data when you first access a page (via … Read more

Categories JSF

How to call a method with parameters in JSF

The simplest (and most powerful) way to pass parameters is via JSF method expression which has been introduced in JSF 2.0 and EL 2.2. So this is only possible if you’re running on a Servlet 3.0 / EL 2.2 capable container like Tomcat 7, Glassfish 3, JBoss AS 6, etc and your web.xml is been … Read more

Categories JSF

Java EE 6 example application

Today you can find many articles showing Java EE 6 examples and new features. However it’s missing a complete tutorial showing how to design and deploy a sample Java EE 6 application on JBoss AS 6. While it’s not intended to be the “the right” way to design Java EE 6 applications, this tutorial can … Read more

Categories JSF

JSF validation tutorial

Data validation is a key element of every application and JSF makes no exception to it. In this tutorial we will introduce the basic concepts of JSF validation using the tactics which are available since JSF 1.2 and the new validation options offered by JSF 2.0. Data validation allow you to focus on business logic … Read more

Categories JSF
Exit mobile version