This book provides a thorough tutorial and lasting reference for perhaps the most significant J2EE specification in recent memory.
° A Core book from Geary and Horstmann -- two top experts and best-selling Java technology authors
° Covers both the application framework and the component model in detail; includes appendices covering related open source tools such as ANT, JUnit, and Cactus
° Launch at JavaONE in June!
JavaServer Faces promises to bring rapid user-interface development to server-side Java. It allows developers to painlessly write server-side applications without worrying about the complexities of dealing with browsers and Web servers. It also automates low-level, boring details like control flow and moving code between web forms and business logic.
JavaServer Faces was designed to support drag and drop development of server-side applications," but you can also think of it as a conceptual layer on top of servlets and JavaServer Pages (JSP). Experienced JSP developers will find that JavaServer Faces provides much of the plumbing that they currently have to implement by hand. If you already use a server-side framework such as Struts, you will find that JavaServers Faces uses a similar architecture, but is more flexible and extensible. JavaServer Faces also comes with server-side components and an event model, which are fundamentally similar to the same concepts in Swing.
JavaServer Faces is quickly becoming the standard Web-application framework. Core JavaServer Faces is the one book you need to master this powerful and time-saving technology.
Without assuming knowledge of JSP and servlets, Core JavaServer Faces:
Download the Sample
Chapter related to this title.
Why JavaServer Faces.
A Simple Example.
Sample Application Analysis.
The Welcome File.
Visual Development Environments.
JSF Framework Services.
Behind the Scenes.
The Life Cycle.
Automation of the Build Process with Ant.
Using the Deployment Manager with Ant.
Definition of a Bean.
Value Binding Expressions.
A Sample Application.
Setting Property Values.
Initializing Lists and Maps.
Chaining Bean Definitions.
The Syntax of Value Binding Expressions.
Map and List Expressions.
Resolving the Initial Term.
Method Binding Expressions.
Advanced Navigation Issues.
The Navigation Algorithm.
An Overview of the JSF Core Tags.
An Overview of the JSF HTML Tags.
Text Fields and Text Areas.
Using Text Fields and Text Areas.
Displaying Text and Images.
Buttons and Links.
Checkboxes and Radio Buttons.
Menus and Listboxes.
The Data Table Tag.
A Simple Table.
Headers and Footers.
JSF Components in Table Cells.
Editing Table Cells.
Styles for Rows and Columns.
Styles by Column.
Styles by Row.
JSTL Result vs. Result Sets.
Editing Table Models.
Sorting and Filtering.
Scrolling with a Scrollbar.
Scrolling with Page Widgets.
Overview of the Conversion and Validation Process.
Using Standard Converters.
Conversion of Numbers and Dates.
A Complete Converter Example.
Using Standard Validators.
Validating String Lengths and Numeric Ranges.
Checking for Required Values.
Displaying Validation Errors.
A Complete Validation Example.
Programming with Custom Converters and Validators.
Implementing Custom Converter Classes.
Implementing Custom Validator Classes.
Registering Custom Validators.
Validating with Bean Methods.
Validating Relationships Between Multiple Components.
Implementing Custom Tags.
Custom Converter Tags.
Custom Validator Tags.
Value Change Events.
Event Listener Tags.
Using Immediate Input Components.
Bypassing Conversion and Validation.
Putting It All Together.
A Book Viewer and a Library.
The Book Viewer.
Monolithic JSF Pages.
Common Content Inclusion.
Content Inclusion in JSP-Based Applications.
Content Inclusion in the Book Viewer.
Looking at Tiles.
Using Tiles with the Book Viewer.
Implementing Custom Components with Classes.
Tags and Components.
The Custom Component Developer's Toolbox.
Encoding: Generating Markup.
Decoding: Processing Request Values.
Implementing Custom Component Tags.
The Spinner Application.
Revisiting the Spinner.
Using an External Renderer.
Calling Converters from External Renderers.
Supporting Value Change Listeners.
Supporting Method Bindings.
Using Child Components and Facets.
Processing SelectItem Children.
Encoding CSS Styles.
Using Hidden Fields.
Saving and Restoring State.
Firing Action Events.
Using the Tabbed Pane.
Accessing a Database.
Issuing SQL Statements.
Plugging Connection Leaks.
Using Prepared Statements.
Configuring a Database Resource in Tomcat.
A Complete Database Example.
Using LDAP for Authentication.
Configuring an LDAP Server.
Accessing LDAP Directory Information.
Managing Configuration Information.
Configuring a Bean.
Configuring the External Context.
Configuring a Container-Managed Resource.
Creating an LDAP Application.
Container-Managed Authentication and Authorization.
Using Web Services.
Rendering Technologies for Mobile Clients.
Canvases and Forms.
Commands and Keys.
The MIDP Emulator.
Mobile Communication and Control Flow.
Component Implementation for Mobile Clients.
The Battleship Game.
The Game Rules.
The User Interface.
Web User Interface Design.
How do I support file uploads?
How do I show an image map?
How do I include an applet in my page?
How do I produce binary data in a JSF page?
How do I show a large data set one page at a time?
How do I generate a popup window?
How do I customize error pages?
How do I use the Struts framework for client-side validation?
How do I write my own client-side validation tag?
How do I use the Jakarta Commons Validator for client-side validation?
How do I validate relationships between components?
How do I use JSF with Eclipse?
How do I locate a configuration file?
How do I package a set of tags into a JAR file?
How do I carry out initialization or cleanup work?
How do I extend the JSF expression language?
How do I choose different render kits?
Debugging and Logging.
How do I decipher a stack trace?
How do I find the logs?
How do I find out what parameters my page received?
How do I turn on logging of the JSF container?
How do I replace catalina.out with rotating logs?
How do I find the library source?
Download the Index
file related to this title.