How to test Jakarta Faces with HTMLUnit and Arquillian

In this article we will walk through the HTMLUnit library to learn how to test Web applications. You can combine HTMLUnit with Arquillian to test Jakarta Faces applications with ease. What is HTML Unit? HTMLUnit is a Java-based testing tool that allows developers to automate testing of web applications. It simulates a web browser, allowing … Read more

Categories JSF

JSF tutorial for Java developers

Jakarta Server Faces 3 is the current specification for JSF which runs on Jakarta EE containers such as WildFly application server. In this JSF tutorial we will cover the main features of JSF which are coming from the earlier JSF releases.Please note: if you are moving to Jakarta EE 9, Jakarta Faces 3.0 has a … 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 validation options available since JSF 2.0.

Read more

Categories JSF

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 … Read more

Categories JSF