You are previewing JavaServer Faces: Introduction By Example.
O'Reilly logo
JavaServer Faces: Introduction By Example

Book Description

This book is about using JavaServer Faces to create and deploy interactive applications delivered to end users via a browser interface. JavaServer Faces is the component-based technology enabling easy development of such applications, especially applications of the type commonly needed in enterprise environments. JavaServerFaces: Introduction by Example is a to-the-point, 250-page introduction to an important technology that every Java Enterprise Edition programmer should know and be able to use.

JavaServer Faces: Introduction by Example takes you through building and deploying servlet-based web pages built around JavaServer Faces, Facelets, managed Java Beans, and prebuilt user-interface components. You'll learn to build user interfaces that run in the browser, to display data drawn from corporate databases, accept user input, deal with errors and exceptions, and more.

JavaServer Faces is an important user-interface technology for any Java developer to learn who works in an enterprise environment. JavaServer Faces: Introduction by Example is your no-nonsense guide to getting started right away in taking advantage of the technology's component-driven approach.

  • Introduces servlets, which are the basis for JavaServer Faces applications
  • Covers development and deployment of user interfaces in the browser
  • Demonstrates advanced techniques such as the use of AJAX
  • Table of Contents

    1. Cover
    2. Title
    3. Copyright
    4. Dedication
    5. Contents at a Glance
    6. Contents
    7. About the Author
    8. Acknowledgments
    9. Chapter 1: Introduction to Servlets
      1. Setting Up a Java Enterprise Environment
        1. Example
        2. Explanation
      2. Developing Your First Servlet
        1. Example
        2. Explanation
      3. How to Package, Compile, and Deploy a Servlet
        1. Example
        2. Explanation
      4. Registering Servlets Without WEB-XML
        1. Example
        2. Explanation
      5. Displaying Dynamic Content with a Servlet
        1. Example
        2. Explanation
      6. Handling Requests and Responses
        1. Example
        2. Explanation
      7. Listening for Servlet Container Events
        1. Example
        2. Explanation
      8. Setting Initialization Parameters
        1. Example #1
        2. Example #2
        3. Explanation
      9. Filtering Web Requests
        1. Example
        2. How It Works
      10. Listening for Attribute Changes
        1. Example
        2. Explanation
      11. Applying a Listener to a Session
        1. Example
        2. Explanation
      12. Managing Session Attributes
        1. Example
        2. How It Works
      13. Downloading a File Using a Servlet
        1. Example
        2. Explanation
      14. Dispatching Requests
        1. Example
        2. Explanation
      15. Redirecting to Another Application or Site
        1. Example
        2. Explanation
      16. Utilizing Cookies Within the Browser Securely
        1. Example
        2. Explanation
      17. Finalizing Servlet Tasks
        1. Example
        2. Explanation
      18. Reading and Writing with Nonblocking I/O
        1. Example
        2. Explanation
    10. Chapter 2: JavaServer Pages
      1. Development of a Simple JSP Page
        1. Example
        2. Explanation
      2. Embedding Java into a JSP Page
        1. Example
        2. Explanation
      3. Separating Business Logic from View Code
        1. Example
        2. Explanation
      4. Yielding or Setting Values
        1. Example
        2. Explanation
      5. Invoking a Function in a Conditional Expression
        1. Example
        2. Explanation
      6. Creating a JSP Document
        1. Example
        2. Explanation
      7. Embedding Expressions in EL
        1. Example
        2. Explanation
      8. Accessing Parameters in Multiple Pages
        1. Example
        2. Explanation
      9. Creating a Custom JSP Tag
        1. Example
        2. Explanation
      10. Including Other JSPs into a Page
        1. Example
        2. Explanation
      11. Creating an Input Form for a Database Record
        1. Example
        2. Explanation
      12. Looping Through Database Records Within a Page
        1. Example
        2. Explanation
      13. Handling JSP Errors
        1. Example
        2. Explanation
      14. Disabling Scriptlets in Pages
        1. Example
        2. Explanation
      15. Ignoring EL in Pages
        1. Example #1
        2. Example #2
        3. Example #3
        4. Explanation
    11. Chapter 3: The Basics of JavaServer Faces
      1. Writing a Simple JSF Application
        1. Example #1
        2. Example #2
        3. Explanation
        4. Breaking Down a JSF Application
      2. Writing a Managed Bean
        1. Example
        2. Explanation
        3. Scopes
      3. Building Sophisticated JSF Views with Components
        1. Example
        2. Explanation
      4. Displaying Messages in JSF Pages
        1. Example
        2. Explanation
      5. Navigation Based Upon Conditions
        1. Example
        2. Explanation
      6. Updating Messages Without Recompiling
        1. Example
        2. Explanation
      7. Validating User Input
        1. Example
        2. Explanation
      8. Evaluation of Page Expressions Immediately
        1. Example
        2. Explanation
      9. Passing Page Parameters to Methods
        1. Example
        2. Explanation
      10. Arithmetic and Reserved Words in Expressions
        1. Example
        2. Explanation
      11. Creating Bookmarkable URLs
        1. Example
        2. Explanation
      12. Displaying Lists of Objects
        1. Example
        2. Explanation
      13. Invoking Managed Bean Actions on Life-Cycle Phase Events
        1. Example
        2. Explanation
    12. Chapter 4: Facelets
      1. Creating a Page Template
        1. Example
        2. Explanation
      2. Applying a Template to Your Views
        1. Example
        2. Explanation
        3. Applying Templates
      3. Ensuring Resource Availability from All Views
        1. Example
        2. Explanation
      4. Creating Reusable Templates That Act As Components
        1. Example
        2. Explanation
      5. Handling Variable-Length Data on a Page
        1. Example
        2. Explanation
      6. Debugging View Content
        1. Example
        2. Explanation
      7. Writing a Custom Resolver for Locating Facelets Templates and Resources
        1. Example
        2. Explanation
      8. Utilizing Multiple Templates per Application
        1. Example
        2. Explanation
    13. Chapter 5: JavaServer Faces Standard Components
      1. Component and Tag Primer
        1. Common Component Tag Attributes
        2. Common JavaScript Component Tags
        3. Binding Components to Properties
      2. Creating an Input Form
        1. Example
        2. Explanation
      3. Invoking Actions from Within a Page
        1. Example
        2. Explanation
      4. Displaying Output
        1. Example
        2. Explanation
      5. Adding Form Validation
        1. Example #1
        2. Example #2
        3. Example #3
        4. Explanation
      6. Adding Select Lists to Pages
        1. Example
        2. Explanation
      7. Adding Graphics to Your Pages
        1. Example
        2. Explanation
      8. Adding Check Boxes to a View
        1. Example
        2. Explanation
      9. Adding Radio Buttons to a View
        1. Example
        2. Explanation
      10. Structuring View Layout
        1. Example
        2. Explanation
      11. Displaying a Collection of Data
        1. Example
        2. Explanation
      12. Utilizing Custom JSF Component Libraries
        1. Example
        2. Explanation
      13. Implementing File Uploading
        1. Example
        2. Explanation
    14. Chapter 6: Advanced JavaServer Faces and Ajax
      1. Validating Input with Ajax
        1. Example
        2. Explanation
      2. Submitting Pages Without Page Reloads
        1. Example
        2. Explanation
      3. Making Partial-Page Updates
        1. Example
        2. Explanation
      4. Applying Ajax Functionality to a Group of Components
        1. Example
        2. Explanation
      5. Custom Processing of Ajax Functionality
        1. Example
        2. Explanation
      6. Custom Conversion of Input Values
        1. Example
        2. Explanation
      7. Maintaining Managed Bean Scopes for a Session
        1. Example
        2. Explanation
      8. Listening for System-Level Events
        1. Example
        2. Explanation
      9. Listening for Component Events
        1. Example
        2. Explanation
      10. Invoking a Managed Bean Action on Render
        1. Example
        2. Explanation
      11. Asynchronously Updating Components
        1. Example
        2. Explanation
      12. Developing JSF Components Containing HTML5
        1. Example
        2. Explanation
      13. Listening to JSF Phases
        1. Example
        2. Explanation
      14. Adding Autocompletion to Text Fields
        1. Example
        2. Explanation
      15. Developing Custom Constraint Annotations
        1. Example
        2. Explanation
      16. Customizing Data Tables
        1. Example
        2. Explanation
      17. Developing a Page Flow
        1. Example
        2. Explanation
      18. Constructing a JSF View in Pure HTML5
        1. Example
        2. Explanation
    15. Index