Description
Book SynopsisShowing how to use the JavaServer Faces framework to build real-world web applications, this text shows how: to construct the HTML on the front end; to create user interface components that connect the front end to business objects; to write a back-end that's JSF-friendly; and to create the deployment descriptors to tie everything together.
Table of ContentsPreface 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 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 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 4. Servlet and JavaServer Pages Basics HTTP Web Application Deployment and Runtime Environment Servlets, Filters, and Listeners JavaServer Pages Accessing Application Data 5. Developing the Business Logic and Setting Up Authentication Sample Application Overview Implementing the Business Logic Classes Authentication and Authorization 6. Creating and Rendering Components The Basics Binding Components to Model Properties Conditionally Render Components 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 8. Handling Events Understanding the JSF Event Model Handling Application Backend Events Handling User Interface Events 9. Controlling Navigation Moving Between JSF Views Returning a Non-JSF View Response Returning a JSF View Response to a Non JSF Request 10. Working with Tabular Data Displaying a Read-Only Table Processing Row-Specific Events Dealing with Large Tables Editing Tabular Data 11. Internationalization Localizing Application Output Handling Localized Application Input Dealing with Non-Western Languages 12. Odds and Ends Building a View from Many JSP Files Combining JSF Views with Other Content Dealing with Struts Applications and JSF Programmatically Modifying Components Using a PhaseListener Debugging and Error Handling Ideas 13. Developing Custom Renderers and Other Pluggable Classes Developing Custom Renderers Using Other Custom Classes Packaging Custom Classes 14. Developing Custom Components Extending an Existing Component Developing a New Component from Scratch 15. Developing a Custom Presentation Layer The ViewHandler Class Using Java Classes as Views Using Pure HTML Templates with XML View Definition Files A. Standard JSF Tag Libraries B. JSF Expression Language Reference C. Standard JSF Components and Render Kits D. Infrastructure API Reference E. JSF Configuration File Reference F. Web Application Structure and Deployment Descriptor Reference Index