JavaServer Faces: Building Web-based User Interfaces

JavaServer Faces, or JSF, brings a component-based model to web application development that's similar to the model that's been used in standalone GUI applications for years. The technology builds on the experience gained from Java Servlets, JavaServer Pages, and numerous commercial and open source web application frameworks that simplify the development process.In JavaServer Faces, developers learn how to use this new framework to build real-world web applications. The book contains everything you'll need: how to construct the HTML on the front end; how to create the user interface components that connect the front end to your business objects; how to write a back-end that's JSF-friendly; and how to create the deployment descriptors that tie everything together.JavaServer Faces pays particular attention to simple tasks that are easily ignored, but crucial to any real application: working with tablular data, for example, or enabling and disabling buttons. And this book doesn't hide from the trickier issues, like creating custom components or creating renderers for different presentation layers. Whether you're experienced with JSF or a just starting out, you'll find everything you need to know about this technology in this book.Topics covered include:

  • The JSF environment
  • Creating and rendering components
  • Validating input
  • Handling user-generated events
  • Controlling page navigation
  • Working with tabular data
  • Internationalization
  • Integration between JSF and Struts
  • Developing custom renderers and custom components
JavaServer Faces is a complete guide to the crucial new JSF technology. If you develop web applications, JSF belongs in your toolkit, and this book belongs in your library.
1140203420
JavaServer Faces: Building Web-based User Interfaces

JavaServer Faces, or JSF, brings a component-based model to web application development that's similar to the model that's been used in standalone GUI applications for years. The technology builds on the experience gained from Java Servlets, JavaServer Pages, and numerous commercial and open source web application frameworks that simplify the development process.In JavaServer Faces, developers learn how to use this new framework to build real-world web applications. The book contains everything you'll need: how to construct the HTML on the front end; how to create the user interface components that connect the front end to your business objects; how to write a back-end that's JSF-friendly; and how to create the deployment descriptors that tie everything together.JavaServer Faces pays particular attention to simple tasks that are easily ignored, but crucial to any real application: working with tablular data, for example, or enabling and disabling buttons. And this book doesn't hide from the trickier issues, like creating custom components or creating renderers for different presentation layers. Whether you're experienced with JSF or a just starting out, you'll find everything you need to know about this technology in this book.Topics covered include:

  • The JSF environment
  • Creating and rendering components
  • Validating input
  • Handling user-generated events
  • Controlling page navigation
  • Working with tabular data
  • Internationalization
  • Integration between JSF and Struts
  • Developing custom renderers and custom components
JavaServer Faces is a complete guide to the crucial new JSF technology. If you develop web applications, JSF belongs in your toolkit, and this book belongs in your library.
39.99 In Stock
JavaServer Faces: Building Web-based User Interfaces

JavaServer Faces: Building Web-based User Interfaces

by Hans Bergsten
JavaServer Faces: Building Web-based User Interfaces

JavaServer Faces: Building Web-based User Interfaces

by Hans Bergsten

eBook

$39.99 

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

JavaServer Faces, or JSF, brings a component-based model to web application development that's similar to the model that's been used in standalone GUI applications for years. The technology builds on the experience gained from Java Servlets, JavaServer Pages, and numerous commercial and open source web application frameworks that simplify the development process.In JavaServer Faces, developers learn how to use this new framework to build real-world web applications. The book contains everything you'll need: how to construct the HTML on the front end; how to create the user interface components that connect the front end to your business objects; how to write a back-end that's JSF-friendly; and how to create the deployment descriptors that tie everything together.JavaServer Faces pays particular attention to simple tasks that are easily ignored, but crucial to any real application: working with tablular data, for example, or enabling and disabling buttons. And this book doesn't hide from the trickier issues, like creating custom components or creating renderers for different presentation layers. Whether you're experienced with JSF or a just starting out, you'll find everything you need to know about this technology in this book.Topics covered include:

  • The JSF environment
  • Creating and rendering components
  • Validating input
  • Handling user-generated events
  • Controlling page navigation
  • Working with tabular data
  • Internationalization
  • Integration between JSF and Struts
  • Developing custom renderers and custom components
JavaServer Faces is a complete guide to the crucial new JSF technology. If you develop web applications, JSF belongs in your toolkit, and this book belongs in your library.

Product Details

ISBN-13: 9781449378950
Publisher: O'Reilly Media, Incorporated
Publication date: 04/22/2004
Sold by: Barnes & Noble
Format: eBook
Pages: 608
File size: 5 MB

About the Author

Hans Bergsten is the founder of Gefion Software, a company focused on Java services and products based on the J2EE technlogies. Hans has been an active participant in the working groups for both the servlet and JSP specifications from the time they were formed. He also contributes to other related JCP specifications, such as JSP Standard Tag Libraries (JSTL), and helped get the development of the Apache Tomcat reference implementation for servlet and JSP started as one of the initial members of the Apache Jakarta Project Management Committee.

Table of Contents

Prefaceix
1.Introducing JavaServer Faces1
What Is JavaServer Faces?1
How Does JSF Compare to Traditional Technologies?3
Where Does JSF Fit in the Big Picture?8
What You Need to Get Started9
2.JSF Development Process Overview11
Developing an Application with a JSF-Based User Interface12
Developing the Application Backend13
Developing Components and Integration Code14
Developing the User Interface Pages17
3.Setting Up the JSF Environment21
Installing the Java Software Development Kit22
Installing the Tomcat Server23
Testing Tomcat26
Installing the Book Examples28
Example Web Application Overview30
4.Servlet and JavaServer Pages Basics32
HTTP32
Web Application Deployment and Runtime Environment39
Servlets, Filters, and Listeners42
JavaServer Pages49
Accessing Application Data61
5.Developing the Business Logic and Setting Up Authentication64
Sample Application Overview64
Implementing the Business Logic Classes66
Authentication and Authorization78
6.Creating and Rendering Components85
The Basics85
Binding Components to Model Properties99
Conditionally Render Components108
7.Validating Input115
Dealing with Syntax Errors in User Input115
Using the Standard Validators118
Defining Custom Error Messages126
Using a Custom Validator127
Other Ways to Validate Input137
8.Handling Events138
Understanding the JSF Event Model138
Handling Application Backend Events143
Handling User Interface Events150
9.Controlling Navigation158
Moving Between JSF Views158
Returning a Non-JSF View Response165
Returning a JSF View Response to a Non JSF Request167
10.Working with Tabular Data169
Displaying a Read-Only Table169
Processing Row-Specific Events173
Dealing with Large Tables179
Editing Tabular Data187
11.Internationalization193
Localizing Application Output193
Handling Localized Application Input203
Dealing with Non-Western Languages205
12.Odds and Ends212
Building a View from Many JSP Files212
Combining JSF Views with Other Content221
Dealing with Struts Applications and JSF224
Programmatically Modifying Components232
Using a PhaseListener237
Debugging and Error Handling Ideas239
13.Developing Custom Renderers and Other Pluggable Classes246
Developing Custom Renderers247
Using Other Custom Classes272
Packaging Custom Classes273
14.Developing Custom Components274
Extending an Existing Component274
Developing a New Component from Scratch283
15.Developing a Custom Presentation Layer306
The ViewHandler Class306
Using Java Classes as Views307
Using Pure HTML Templates with XML View Definition Files316
A.Standard JSF Tag Libraries329
B.JSF Expression Language Reference380
C.Standard JSF Components and Render Kits387
D.Infrastructure API Reference479
E.JSF Configuration File Reference537
F.Web Application Structure and Deployment Descriptor Reference550
Index573
From the B&N Reads Blog

Customer Reviews