HansBergsten.com
Server-side Java technology resources
   
 
About Hans
ICanHelpSM FAQs Resources News Archive
 
   
 
Home
JavaServer Faces
   Examples Download
   Buy It
JavaServer Pages
   Examples Download
   Buy It
Java Enterprise
Best Practices

   Buy It
Articles
 
JavaServer Faces
About the JavaServer Faces, 1st Edition book
By Hans Bergsten
1st Edition, April 2004
ISBN: 0-596-00539-3
624 pages
Reader Reviews
Errata
Sample Chapters
Java Server Faces shows you how to use the new JSF framework to build real-world web applications. Everything's here: how to construct the HTML on the front end; how to create the user interface components that connect the front end to your business objects; and how to create the deployment descriptors that tie everything together.
Java Server Faces pays attention to the details that are crucial to any real application, such as working with tablular data and enabling and disabling features based on runtime conditions. This book also includes advanced topics, like creating custom components and renderers as well as how to develop custom presentation layers as an alternative to the standard JSP-based presentation layer. Whether you're a beginner or an expert, you'll find everything you need to know about JSF in this book.

Topics covered include:

  • The JSF environment
  • Creating and rendering components
  • Validating input
  • Handling user-generated events
  • Controlling page navigation
  • Working with tabular data
  • Internationalization
  • How to integrate Struts and JSF, as well as how to convert from Struts to JSF
  • Developing custom renderers, components and view handlers
Java Server Faces is a complete guide to the crucial new JSF technology. If you develop web applications, JSF belongs in your toolkit, and this book belongs in your library.

Includes a complete reference to the JSF specification.

Hans Bergsten is the author of Java Server Faces, and a member of the JSF specification team.

Table of Contents
Chapter 1, Introducing JavaServer Faces
  • What Is JavaServer Faces?
  • How Does JSF Compare to Traditional Technologies?
  • Where Does JSF Fit in the Big Picture?
  • What You Need to Get Started
Chapter 2, JSF Development Process Overview
  • Developing an Application With a JSF-Based User Interface
  • Developing the Application Backend
  • Developing Components and Integration Code
  • Developing the User Interface Pages
Chapter 3, Setting Up the JSF Environment
  • Installing the Java Software Development Kit
  • Installing the Tomcat Server
  • Testing Tomcat
  • Installing the Book Examples
  • Example Web Application Overview
Chapter 4, Servlet and JavaServer Pages Basics
  • HTTP
  • Web Application Deployment and Runtime Environment
  • Servlets, Filters and Listeners
  • JavaServer Pages
  • Accessing Application Data
Chapter 5, Developing the Business Logic and Setting Up Authentication
  • Sample Application Overview
  • Implementing the Business Logic Classes
  • Authentication and Authorization
Chapter 6, Creating and Rendering Components
  • The Basics
  • Binding Components to Model Properties
  • Conditionally Render Components
Chapter 7, Validating Input
  • Dealing With Syntax Errors in User Input
  • Using the Standard Validators
  • Defining Custom Error Messages
  • Using a Custom Validator
  • Other Ways to Validate Input
Chapter 8, Handing Events
  • Understanding the JSF Event Model
  • Handling Application Backend Events
  • Handling User Interface Events
Chapter 9, Controlling Navigation
  • Moving Between JSF Views
  • Returning a Non-JSF View Response
  • Returning a JSF View Response to a Non-JSF Request
Chapter 10, Working With Tabular Data
  • Displaying a Read-Only Table
  • Processing Row-Specific Events
  • Dealing With Large Tables
  • Editing Tabular Data
Chapter 11, Internationalization
  • Localizing Application Output
  • Handling Localized Application Input
  • Dealing With Non-Western Languages
Chapter 12, Odds and Ends
  • Building a View From Many JSP Files
  • Combining JSF View With Other Content
  • Dealing WIth Struts Applications and JSF
  • Programmatically Modifying Components
  • Using a PhaseListener
  • Debugging and Error Handling Ideas
Chapter 13, Developing Custom Renderers and Other Pluggable Classes
  • Developing Custom Renderers
  • Using Other Custom Classes
  • Packaging Custom Classes
Chapter 14, Developing Custom Components
  • Extending an Existing Component
  • Developing a New Component From Scratch
Chapter 15, Developing a Custom Presentation Layer
  • The ViewHandler Class
  • Using Java Classes as Views
  • Using Pure HTML Templates With XML View Definition Files
Appendix A: Standard JSF Tag Libraries

Appendix B: JSF Expression Language Reference

Appendix C: Standard JSF Components and Renderers

Appendix D: Infrastructure API Reference

Appendix E: JSF Configuration File Reference

Appendix F: Web Application Structure and Deployment Descriptor Reference

Index


Copyright © 2008 Hans Bergsten. Web hosting by Java Web Hosting