PacktLib: Apache MyFaces 1.2 Web Application Development

Apache MyFaces 1.2

Credits

About the Author

Acknowledgement

About the Reviewers

Preface

Introduction

Introducing Apache MyFaces

Subprojects of Apache MyFaces

Summary

Getting Started

Configuring the development environment

Application server and configuration files

Introduction to the example case

Summary

Facelets

Why Facelets?

Setting up a Facelets project

Templating with Facelets

Creating and using composition components

Using static functions

Using inline texts

Facelets tags overview

Summary

Tomahawk

Setting up Tomahawk

Using extended versions of standard components

Extended components

Creating basic data tables

Using advanced data table features

Uploading files

Working with dates and calendars

Extra validators

Summary

Trinidad—the Basics

Setting up Trinidad

Creating data tables

Creating input and edit forms

File uploading

Using Trinidad’s hierarchical navigation features

Creating layouts for our pages

Summary

Advanced Trinidad

Data visualization

Passing on data with page flows

Using AJAX and Partial Page Rendering

Creating dialogs

Client-side validation and conversion

Summary

Trinidad Skinning and Tuning

Skinning

Tuning Trinidad

Summary

Integrating with the Backend

The Model-View-Controller architecture

Setting up the Java EE application structure

Preparing a database environment

Implementing the Model

Using the service facade in the View layer

Limitations and problems

Summary

MyFaces Orchestra

Setting up Orchestra

Using the Orchestra ViewController

Setting up Orchestra conversations

Generating forms with DynaForm

Summary

Extensions Validator

Setting up ExtVal

Basic usage

Complementing JPA annotations

Applying cross validation

Creating custom error messages

Creating our own validation strategy

Extending ExtVal with add-ons

Using Bean Validation

Summary

Best Practices

Preventing direct access to page definitions

Using container-managed security with JSF

Component bindings

Keeping the state of a component

Summary

XHTML Entities

XHTML Entities

XHTML Entities

XHTML Entities

XHTML Entities

XHTML Entities

XHTML Entities

XHTML Entities

XHTML Entities

XHTML Entities

XHTML Entities

XHTML Entities

Trinidad Tags

Trinidad Text Keys

Default JSF Error Messages

ExtVal Default Error Messages