This tutorial teaches you how to integrate Java Server Faces in a NetUI Page Flow web application.
The application you build here is a hybrid application that uses both JSF and NetUI technology. JSF supplies the user interface portion of the application, while NetUI supplies centralized backend data processing.
The tutorial contains step-by-step instructions for building a simple web application for querying and viewing customer data. As you progress through the tutorial you will learn:
Note: This JSF tutorial assumes that you have a basic knowledge of NetUI web application technology, including the roles of controller classes, JSP pages, form beans and action methods. If you are unfamiliar with these concepts you may want to complete Tutorial: Accessing a Database from a Web Application before continuing.
In this first step of this tutorial you will create the foundation for your application by creating two projects: an EAR project and a Web Application Project.
The EAR project has two main purposes: (1) it is a composite application that acts as a container for other applications and (2) it contains resources, in the form of library modules and JARs, for the applications contained in it.
For the purposes of this tutorial, the most important JARs contained in the EAR project are (1) the NetUI JARs and (2) the JSF JARs.
The Web Application Project accesses these JAR resources in the EAR simply by referencing them, not by copying them directly. This allows multiple web projects to point to the same resources in an EAR, without unnecessary duplication of resources.
In this step you will create a simple web application that uses JSF tags to define the user interface.
The web app contains a page where users can submit queries and another page for viewing the results.
Click the arrow below to navigate through the tutorial: