O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JavaServer® Faces 2.0: Essential Guide for Developers

Book Description

JavaServer Faces is one of the world's most commonly used frameworks for building user interfaces on the Web. In JavaServer Faces 2.0: Essential Guide for Developers, expert Java programmer and Web developer Deepak Vohra covers all the new features of JavaServer Faces 2.0 using examples in Oracle JDeveloper and the integrated Oracle WebLogic Server. The book covers all aspects of Web application development with JSF 2.0, including setting up the environment for an application, using the JDeveloper wizards and the Component palette, and running a sample application Code examples used in the book are available for download from the book's companion website. Additionally, the book is suitable for preparing for the Java EE 6 JavaServer Faces Developer Certified Expert Exam (Exam Number: 1Z1-896). Ideal for pro-level developers and intermediate trainees, this book covers everything from Facelets and Ajax to resource handling, client behaviors, system events, and more. Build your expertise with JavaServer Faces 2.0 today, with JAVASERVER FACES 2.0: ESSENTIAL GUIDE FOR DEVELOPERS

Table of Contents

  1. Title Page
  2. Copyright Page
  5. Introduction
  6. Chapter 1 What’s New in JSF 2.0
    1. State Saving
    2. Facelets
    3. Navigation
    4. Validation
    5. Scopes and Configuration
    6. Ajax
    7. Resource Handling
    8. Composite Components
    9. View Parameters
    10. Client Behaviors
    11. Event Handling and Exception Handling
    12. Summary
  7. Chapter 2 Templating with Facelets
    1. Overview of Facelets
    2. Setting the Environment
    3. Configuring the Integrated WebLogic Server
    4. Creating a Facelets Project
    5. Creating a Managed Bean
    6. Creating a Facelets Template
    7. Developing Facelets Composition Pages
    8. Creating Navigation
    9. Deploying the Facelets Application
    10. Running the Facelets Application
    11. Summary
  8. Chapter 3 Ajax
    1. Setting the Environment
    2. Creating a Facelets Application
    3. Creating a Managed Bean
    4. Creating a JSF Page
    5. Adding Ajax
    6. Deploying and Running the JSF 2.0 Ajax Application
    7. Partial Page Rendering: Rendering
    8. Grouping Components
    9. Summary
  9. Chapter 4 Creating Composite Components
    1. Setting the Environment
    2. Creating a Java EE Web Application
    3. Creating a Using Page
    4. Creating a Managed Bean
    5. Creating Composite Components
    6. Running the Composite Components Application
    7. Binding Composite Components to Unique Managed Bean Properties
    8. Summary
  10. Chapter 5 Enhanced Navigation
    1. Setting the Environment
    2. Creating a Java EE Web Application
    3. Implicit Navigation
    4. Conditional Navigation
    5. Preemptive Navigation and ConfigurableNavigationHandler
    6. Summary
  11. Chapter 6 Enhanced Validations
    1. Setting the Environment
    2. Creating a Java EE Application
    3. Validation Constraint Annotations
    4. New Validators
    5. Bean Validation Integration
    6. Custom Validators and Null and Empty Values
    7. Custom Validators with Bean Validation
    8. Summary
  12. Chapter 7 View Parameters
    1. Setting the Environment
    2. Creating a Java EE Web Application
    3. POST Request Parameters in JSF 1.2
    4. View Parameters in JSF 2.0
    5. Adding Validation with View Parameters
    6. PreRenderView Event Handling
    7. Preemptive Navigation and Bookmarking
    8. Component Parameters with View Parameters
    9. View Parameters in Redirects
    10. Summary
  13. Chapter 8 Client Behaviors
    1. Overview of the Behavior API
    2. Setting the Environment
    3. Creating a Java EE Web Application
    4. Creating a Facelets Taglib
    5. Configuring the Client Behavior
    6. Using a Client Behavior
    7. Testing Client Behaviors
    8. Summary
  14. Chapter 9 Scopes
    1. Overview of Scopes
    2. The View Scope
    3. Overview of Simplified Configuration
    4. Setting the Environment
    5. Creating a Java EE Web Application
    6. Simplified Configuration
    7. Same View with View Scope
    8. Redirecting with Flash Scope
    9. Creating a Custom Scoped Managed Bean
    10. Summary
  15. Chapter 10 Resource Handling
    1. Overview of the Resource Handler API
    2. Setting the Environment
    3. Creating a Java EE Web Application
    4. Packaging and Rendering Resources
    5. Relocating Resources
    6. Ordering of Application Configuration Resources
    7. Summary
  16. Chapter 11 Event Handling and Exception Handling
    1. System Events
    2. Setting the Environment
    3. Creating a Java EE Web Application
    4. Registering an Application-Scoped System Event Listener
    5. Registering a Component System Event Listener
    6. Declaratively Registering a ComponentSystemEventListener with the f:event Tag
    7. Registering a System Event Listener with the @ListenerFor Annotation
    8. Creating an Event Handler for an Ajax Request
    9. Creating a Custom Exception Handler
    10. Error Handler for an Ajax Request
    11. Commented Out JSF
    12. Summary
  17. Index