JavaServer Faces: Introduction by Example
Format: PDF / Kindle (mobi) / ePub
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.
- Introduces servlets, which are the basis for JavaServer Faces applications
- Covers development and deployment of user interfaces in the browser
- Demonstrates advanced techniques such as the use of AJAX
What you’ll learn
- Create web pages to present dynamic content drawn from databases and other sources
- Accept and respond to user input, including validation and error handling
- Embed Java in order to handle business logic
- Implement navigation to control a user's path through a transaction
- Design pages with Facelets, the view-definition language of JavaServer Pages
- Respond to user actions in real time by using AJAX-based techniques
Who this book is for
JavaServer Faces: Introduction by Example is written for Java Enterprise Edition developers wanting to develop user-interfaces that run in the browser and are component-based for fast development and deployment.
Table of Contents
1. Introduction to Servlets
2. JavaServer Pages
3. The Basics of JavaServer Faces
5. Standard Components
6. Advanced and Ajax
maximum number of inactive seconds has passed. In this example, the method will be called after 60 seconds of inactivity. Within the sessionDestroyed method, another synchronization statement decrements the numberOfSessions field value by one, and then a couple of lines are printed to the server log indicating that a session has been destroyed and providing the new total number of active sessions. Session listeners can be used to set cookies and perform other useful tactics to help manage a
The following parameters will be passed to the next JSP.