Book description
This book is about using JavaServer Faces to create and deploy interactive applications delivered to end users via a browser interface. JavaServer Faces is the component-based technology enabling easy development of such applications, especially applications of the type commonly needed in enterprise environments. JavaServerFaces: Introduction by Example is a to-the-point, 250-page introduction to an important technology that every Java Enterprise Edition programmer should know and be able to use.
JavaServer Faces: Introduction by Example takes you through building and deploying servlet-based web pages built around JavaServer Faces, Facelets, managed Java Beans, and prebuilt user-interface components. You'll learn to build user interfaces that run in the browser, to display data drawn from corporate databases, accept user input, deal with errors and exceptions, and more.
JavaServer Faces is an important user-interface technology for any Java developer to learn who works in an enterprise environment. JavaServer Faces: Introduction by Example is your no-nonsense guide to getting started right away in taking advantage of the technology's component-driven approach.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- Acknowledgments
-
Chapter 1: Introduction to Servlets
- Setting Up a Java Enterprise Environment
- Developing Your First Servlet
- How to Package, Compile, and Deploy a Servlet
- Registering Servlets Without WEB-XML
- Displaying Dynamic Content with a Servlet
- Handling Requests and Responses
- Listening for Servlet Container Events
- Setting Initialization Parameters
- Filtering Web Requests
- Listening for Attribute Changes
- Applying a Listener to a Session
- Managing Session Attributes
- Downloading a File Using a Servlet
- Dispatching Requests
- Redirecting to Another Application or Site
- Utilizing Cookies Within the Browser Securely
- Finalizing Servlet Tasks
- Reading and Writing with Nonblocking I/O
-
Chapter 2: JavaServer Pages
- Development of a Simple JSP Page
- Embedding Java into a JSP Page
- Separating Business Logic from View Code
- Yielding or Setting Values
- Invoking a Function in a Conditional Expression
- Creating a JSP Document
- Embedding Expressions in EL
- Accessing Parameters in Multiple Pages
- Creating a Custom JSP Tag
- Including Other JSPs into a Page
- Creating an Input Form for a Database Record
- Looping Through Database Records Within a Page
- Handling JSP Errors
- Disabling Scriptlets in Pages
- Ignoring EL in Pages
-
Chapter 3: The Basics of JavaServer Faces
- Writing a Simple JSF Application
- Writing a Managed Bean
- Building Sophisticated JSF Views with Components
- Displaying Messages in JSF Pages
- Navigation Based Upon Conditions
- Updating Messages Without Recompiling
- Validating User Input
- Evaluation of Page Expressions Immediately
- Passing Page Parameters to Methods
- Arithmetic and Reserved Words in Expressions
- Creating Bookmarkable URLs
- Displaying Lists of Objects
- Invoking Managed Bean Actions on Life-Cycle Phase Events
-
Chapter 4: Facelets
- Creating a Page Template
- Applying a Template to Your Views
- Ensuring Resource Availability from All Views
- Creating Reusable Templates That Act As Components
- Handling Variable-Length Data on a Page
- Debugging View Content
- Writing a Custom Resolver for Locating Facelets Templates and Resources
- Utilizing Multiple Templates per Application
-
Chapter 5: JavaServer Faces Standard Components
- Component and Tag Primer
- Creating an Input Form
- Invoking Actions from Within a Page
- Displaying Output
- Adding Form Validation
- Adding Select Lists to Pages
- Adding Graphics to Your Pages
- Adding Check Boxes to a View
- Adding Radio Buttons to a View
- Structuring View Layout
- Displaying a Collection of Data
- Utilizing Custom JSF Component Libraries
- Implementing File Uploading
-
Chapter 6: Advanced JavaServer Faces and Ajax
- Validating Input with Ajax
- Submitting Pages Without Page Reloads
- Making Partial-Page Updates
- Applying Ajax Functionality to a Group of Components
- Custom Processing of Ajax Functionality
- Custom Conversion of Input Values
- Maintaining Managed Bean Scopes for a Session
- Listening for System-Level Events
- Listening for Component Events
- Invoking a Managed Bean Action on Render
- Asynchronously Updating Components
- Developing JSF Components Containing HTML5
- Listening to JSF Phases
- Adding Autocompletion to Text Fields
- Developing Custom Constraint Annotations
- Customizing Data Tables
- Developing a Page Flow
- Constructing a JSF View in Pure HTML5
- Index
Product information
- Title: JavaServer Faces: Introduction By Example
- Author(s):
- Release date: December 2014
- Publisher(s): Apress
- ISBN: 9781484208380
You might also like
book
JavaServer Faces
JavaServer Faces, or JSF, brings a component-based model to web application development that's similar to the …
book
JavaServer Faces 2.0, The Complete Reference
The Definitive Guide to JavaServer Faces 2.0 Fully revised and updated for all of the changes …
book
Mastering JavaServer Faces 2.2
Master the art of implementing user interfaces with JSF 2.2 In Detail JavaServer Faces (JSF) is …
book
J2EE™ Tutorial, The
You're familiar with Java™ programming, but now it's time for you to take it to the …