Practical RichFaces, Second Edition

Book description

RichFaces 4 is a component library for JavaServer Faces, and an advanced framework for easily integrating AJAX capabilities into business applications. It lets you quickly develop next-generation web applications based on JSF 2/Ajax.

In this definitive RichFaces 4 book, instead of using JBoss Tools, the author bases all examples on Maven so that any IDE can be used—whether it's NetBeans, Eclipse, JBoss or even Spring.

Practical RichFaces also describes how to best take advantage of RichFaces—the integration of the Ajax4jsf and RichFaces libraries—to create flexible and powerful programs. Assuming some JSF background, it shows how you can radically reduce programming time and effort to create rich AJAX-based applications.

What you'll learn

  • How to build rich Internet applications with out-of-the-box RichFaces components

  • Best strategies for implementing Ajax applications using RichFaces

  • When best to use the two libraries

  • How to create new skins for your app in no time

  • How to create applications without needing to write any JavaScript code

Who this book is for

  • Java developers with good JSF knowledge looking to build next-generation web applications using RichFaces

  • JavaServer Faces users

  • Java programmers wishing to add Ajax to their existing programs

  • Old users of Ajax4jsf

Table of contents

  1. Title
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Authors
  6. About the Technical Reviewer
  7. Acknowledgments
  8. Introduction
    1. Who Should Read This Book
  9. Chapter 1: The Basics
    1. Tell Me About RichFaces First!
    2. What is JSF?
    3. The Most Important JSF Features
    4. An Overview of RichFaces
    5. Summary
  10. Chapter 2: Getting Started
    1. Setting Up
    2. Creating a New Project with RichFaces
    3. Configuring RichFaces
    4. Ajax in JSF 2
    5. RichFaces <a4j:ajax>
    6. Summary
  11. Chapter 3: a4j:* Tags, Features and Concepts
    1. Sending an Ajax Request
    2. Advanced Partial View Rendering Options
    3. Advanced Execute Options
    4. Controlling Traffic with Client Queue
    5. More a4j:* Tags and Features
    6. Summary
  12. Chapter 4: Getting Started with Rich Components
    1. Rich or Ajax Component?
    2. Rich Components Features
    3. Summary
  13. Chapter 5: Rich Input and Select Components
    1. Getting Started
    2. Using <rich:inplaceInput>
    3. Using <rich:inplaceSelect>
    4. Using <rich:autocomplete>
    5. Using <rich:select>
    6. Using <rich:inputNumberSlider>
    7. Using <rich:inputnumberspinner>
    8. Using <rich:calendar>
    9. Uploading files with <rich:fileUpload>
    10. Summary
  14. Chapter 6: Rich Panel and Output Components
    1. Using <rich:panel>
    2. Using <rich:collapsiblePanel>
    3. Using <rich:tabPanel> and <rich:tab>
    4. Using <rich:accordion>
    5. Using <rich:togglePanel>
    6. Using <rich:popupPanel>
    7. Using <rich:toolTip>
    8. Summary
  15. Chapter 7: Rich Data Iteration Components
    1. Data Preparation
    2. Using <rich:dataTable>
    3. Using <rich:extendedDataTable>
    4. Displaying Data in a List with <rich:list>
    5. Displaying Data in a Grid with <rich:dataGrid>
    6. Iterating over Custom Markup with <a4j:repeat>
    7. Iteration Components Advanced Usage
    8. Summary
  16. Chapter 8: Rich Menu Components
    1. Using <rich:toolbar>
    2. Using <rich:dropDownMenu>
    3. Using <rich:panelMenu>
    4. Summary
  17. Chapter 9: Rich Tree Components
    1. Using <rich:tree>
    2. Using <rich:tree> Adaptors to Build the Data Model
    3. Summary
  18. Chapter 10: Rich Drag-and-Drop Components
    1. Using <rich:dragSource> and <rich:dropZone>
    2. Invoking Server-side Listener on Drop
    3. Shopping Cart Example
    4. Two-way Drag-and-Drop Operations
    5. Customizing the Drag Indicator
    6. Using <rich:dragIndicator>
    7. Using Drag-and-Drop with Tree Components
    8. Dragging and Dropping Within Tables
    9. Summary
  19. Chapter 11: Rich Validation
    1. Bean Validation
    2. RichFaces Client-side Validation
    3. Using <rich:message> and <rich:messages>
    4. Graph Validator
    5. Summary
  20. Chapter 12: Rich Components JavaScript API, Client Functions, and Using jQuery
    1. Invoking a Component’s JavaScript API
    2. Other RichFaces Client Functions
    3. Using jQuery with <rich:jQuery>
    4. Summary
  21. Chapter 13: Skins
    1. Using Built-in Skins
    2. Creating Your Own Skins
    3. Using Skins and CSS
    4. Summary
  22. Chapter 14: RichFaces CDK: Building Custom Components
    1. Development Plan
    2. Client-side Prototyping
    3. Creating the Project
    4. Creating a Components Library
    5. Creating an Abstract Component Class
    6. Creating a Component Renderer Template
    7. CDK Renderer Template Tags and Other Features
    8. Creating a Sample Application
    9. Adding Common Attributes
    10. Implementing the Disabled State
    11. Skinning the Spinner Component
    12. Summary
  23. Index

Product information

  • Title: Practical RichFaces, Second Edition
  • Author(s): Max Katz, Ilya Shaikovsky
  • Release date: August 2011
  • Publisher(s): Apress
  • ISBN: 9781430234494