Document Information

Preface

Part I Introduction

1.  Overview

2.  Using the Tutorial Examples

Part II The Web Tier

3.  Getting Started with Web Applications

4.  Java Servlet Technology

5.  JavaServer Faces Technology

6.  Introduction to Facelets

7.  Using JavaServer Faces Technology in Web Pages

8.  Developing with JavaServer Faces Technology

Application Configuration Resource File

Ordering of Application Configuration Resources

Configuring Project Stage

Configuring Beans

Using the managed-bean Element

Using managed-bean Scopes

Eager application-scoped Beans

Initializing Properties Using the managed-property Element

Referencing a Java Enum Type

Referencing an Initialization Parameter

Initializing Map Properties

Initializing Array and List Properties

Initializing Managed Bean Properties

Initializing Maps and Lists

Using Annotations

Registering Custom Error Messages as a Resource Bundle

Registering Custom Localized Static Text

Default Validator

Configuring Navigation Rules

Implicit Navigation Rules

Basic Requirements of a JavaServer Faces Application

Configuring an Application With a Deployment Descriptor

Identifying the Servlet for Life Cycle Processing

Specifying a Path to an Application Configuration Resource File

Specifying Where State Is Saved

Including the Classes, Pages, and Other Resources

Resources

Part III Web Services

10.  Introduction to Web Services

11.  Building Web Services with JAX-WS

12.  Building RESTful Web Services with JAX-RS and Jersey

Part IV Enterprise Beans

13.  Enterprise Beans

14.  Getting Started with Enterprise Beans

15.  Running the Enterprise Bean Examples

Part V Persistence

16.  Introduction to the Java Persistence API

17.  Running the Persistence Examples

18.  The Java Persistence Query Language

Part VI Security

19.  Introduction to Security in the Java EE Platform

20.  Using Java EE Security

21.  Securing Java EE Applications

22.  Securing Web Applications

Part VII Java EE Supporting Technologies

23.  Introduction to Java EE Supporting Technologies

24.  Transactions

25.  Resource Connections

Index

 

Chapter 9

Configuring JavaServer Faces Applications

The responsibilities of the application architect include the following:

  • Registering back-end objects with the application so that all parts of the application have access to them

  • Configuring backing beans and model beans so that they are instantiated with the proper values when a page makes reference to them

  • Defining navigation rules for each of the pages in the application so that the application has a smooth page flow

  • Packaging the application to include all the pages, resources , and other files so that the application can be deployed on any compliant container

This chapter explains how to perform the responsibilities of the application architect.