1 option
Core JavaServer faces
- Format:
- Book
- Author/Creator:
- Geary, David M, Author.
- Language:
- English
- Subjects (All):
- JavaServer pages.
- Web site development--Design.
- Web site development.
- Web sites.
- Physical Description:
- 1 online resource (vii, 501 p.) : ill.
- Edition:
- 3rd ed.
- Place of Publication:
- [Place of publication not identified] Prentice Hall 2010
- Language Note:
- English
- System Details:
- text file
- Summary:
- JavaServer Faces (JSF) is the standard Java EE technology for building web user interfaces. It provides a powerful framework for developing server-side applications, allowing you to cleanly separate visual presentation and application logic. JSF 2.0 is a major upgrade, which not only adds many useful features but also greatly simplifies the programming model by using annotations and “convention over configuration” for common tasks. To help you quickly tap into the power of JSF 2.0, the third edition of Core JavaServer™ Faces has been completely updated to make optimum use of all the new features. The book includes Three totally new chapters on using Facelets tags for templating, building composite components, and developing Ajax applications Guidance on building robust applications with minimal hand coding and maximum productivity–without requiring any knowledge of servlets or other low-level “plumbing” A complete explanation of the basic building blocks–from using standard JSF tags, to working with data tables, and converting and validating input Coverage of advanced tasks, such as event handling, extending the JSF framework, and connecting to external services Solutions to a variety of common challenges, including notes on debugging and troubleshooting, in addition to implementation details and working code for features that are missing from JSF Proven solutions, hints, tips, and “how-tos” show you how to use JSF effectively in your development projects Core JavaServer™ Faces, Third Edition, provides everything you need to master the powerful and time-saving features of JSF 2.0 and is the perfect guide for programmers developing Java EE 6 web apps on Glassfish or another Java EE 6-compliant application servers, as well as servlet runners such as Tomcat 6.
- Contents:
- Cover
- Contents
- Preface
- Acknowledgments
- 1 GETTING STARTED
- Why JavaServer Faces?
- A Simple Example
- Ingredients
- Directory Structure
- Building a JSF Application
- Deploying a JSF Application
- Development Environments for JSF
- An Analysis of the Sample Application
- Beans
- JSF Pages
- Servlet Configuration
- A First Glimpse of Ajax: JSF 2.0
- JSF Framework Services
- Behind the Scenes
- Rendering Pages
- Decoding Requests
- The Life Cycle
- Conclusion
- 2 MANAGED BEANS
- Definition of a Bean
- Bean Properties
- Value Expressions
- Backing Beans
- CDI Beans: CDI
- Message Bundles
- Messages with Variable Parts
- Setting the Application Locale
- A Sample Application
- Bean Scopes
- Session Scope
- Request Scope
- Application Scope
- Conversation Scope: CDI
- View Scope: JSF 2.0
- Custom Scopes: JSF 2.0
- Configuring Beans
- Injecting CDI Beans: CDI
- Injecting Managed Beans: JSF 2.0
- Bean Life Cycle Annotations
- Configuring Managed Beans with XML
- The Expression Language Syntax
- Lvalue and Rvalue Modes
- Using Brackets
- Map and List Expressions
- Calling Methods and Functions: JSF 2.0
- Resolving the Initial Term
- Composite Expressions
- Method Expressions
- Method Expression Parameters: JSF 2.0
- 3 NAVIGATION
- Static Navigation
- Dynamic Navigation
- Mapping Outcomes to View IDs
- The JavaQuiz Application
- Redirection
- Redirection and the Flash: JSF 2.0
- RESTful Navigation and Bookmarkable URLs: JSF 2.0
- View Parameters
- GET Request Links
- Specifying Request Parameters
- Adding Bookmarkable Links to the Quiz Application
- Advanced Navigation Rules
- Wildcards
- Using from-action
- Conditional Navigation Cases: JSF 2.0
- Dynamic Target View IDs: JSF 2.0
- 4 STANDARD JSF TAGS
- An Overview of the JSF Core Tags.
- Attributes, Parameters, and Facets
- An Overview of the JSF HTML Tags
- Common Attributes
- Panels
- The Head, Body, and Form Tags
- Form Elements and JavaScript
- Text Fields and Text Areas
- Hidden Fields
- Using Text Fields and Text Areas
- Displaying Text and Images
- Buttons and Links
- Using Buttons
- Using Command Links
- Selection Tags
- Checkboxes and Radio Buttons
- Menus and Listboxes
- Items
- Messages
- 5 FACELETS: JSF 2.0
- Facelets Tags
- Templating with Facelets
- Building Pages from Common Templates
- Organizing Your Views
- Decorators
- Parameters
- Custom Tags
- Components and Fragments
- Loose Ends
- <
- ui:debug>
- ui:remove>
- Handling Whitespace
- 6 DATA TABLES
- The Data Table Tag-h:dataTable
- A Simple Table
- h:dataTable Attributes
- h:column Attributes
- Headers, Footers, and Captions
- Styles
- Styles by Column
- Styles by Row
- The ui:repeat Tag: JSF 2.0
- JSF Components in Tables
- Editing Tables
- Editing Table Cells
- Deleting Rows: JSF 2.0
- Database Tables
- Table Models
- Rendering Row Numbers
- Finding the Selected Row
- Sorting and Filtering
- Scrolling Techniques
- Scrolling with a Scrollbar
- Scrolling with Pager Widgets
- 7 CONVERSION AND VALIDATION
- Overview of the Conversion and Validation Process
- Using Standard Converters
- Conversion of Numbers and Dates
- Conversion Errors
- A Complete Converter Example
- Using Standard Validators
- Validating String Lengths and Numeric Ranges
- Checking for Required Values
- Displaying Validation Errors
- Bypassing Validation
- A Complete Validation Example
- Bean Validation: JSF 2.0
- Programming with Custom Converters and Validators
- Implementing Custom Converter Classes
- Specifying Converters: JSF 2.0
- Reporting Conversion Errors.
- Getting Error Messages from Resource Bundles
- The Custom Converter Sample Application
- Supplying Attributes to Converters
- Implementing Custom Validator Classes
- Registering Custom Validators
- Validating with Bean Methods
- Validating Relationships between Multiple Components
- Implementing Custom Converter and Validator Tags
- 8 EVENT HANDLING
- Events and the JSF Life Cycle
- Value Change Events
- Action Events
- Event Listener Tags
- The f:actionListener and f:valueChangeListener Tags
- Immediate Components
- Using Immediate Input Components
- Using Immediate Command Components
- Passing Data from the UI to the Server
- The f:param Tag
- The f:attribute Tag
- The f:setPropertyActionListener Tag
- Phase Events
- System Events: JSF 2.0
- Multi-Component Validation
- Making Decisions before Rendering the View
- Putting It All Together
- 9 COMPOSITE COMPONENTS: JSF 2.0
- The Composite Tag Library
- Using Composite Components
- Implementing Composite Components
- Configuring Composite Components
- Attribute Types
- Required Attributes and Default Attribute Values
- Manipulating Server-Side Data
- Localizing Composite Components
- Exposing a Composite's Components
- Exposing Action Sources
- Facets
- Children
- JavaScript
- Backing Components
- Packaging Composite Components in JARs
- 10 AJAX: JSF 2.0
- Ajax and JSF
- The JSF Life Cycle and Ajax
- The JSF Ajax Recipe
- The f:ajax Tag
- Ajax Groups
- Ajax Field Validation
- Ajax Request Monitoring
- JavaScript Namespaces
- Handling Ajax Errors
- Ajax Responses
- The JSF 2.0 JavaScript Library
- Passing Additional Ajax Request Parameters
- Queueing Events
- Coalescing Events
- Intercepting jsf.ajax.request()
- Using Ajax in Composite Components
- Conclusion.
- 11 CUSTOM COMPONENTS, CONVERTERS, AND VALIDATORS
- Implementing a Component Class
- Encoding: Generating Markup
- Decoding: Processing Request Values
- The Tag Library Descriptor: JSF 2.0
- Using an External Renderer
- Processing Tag Attributes: JSF 2.0
- Supporting Value Change Listeners
- Supporting Method Expressions
- Queuing Events
- The Sample Application
- Encoding JavaScript
- Using Child Components and Facets
- Processing SelectItem Children
- Processing Facets
- Using Hidden Fields
- Saving and Restoring State
- Partial State Saving: JSF 2.0
- Building Ajax Components: JSF 2.0
- Implementing Self-Contained Ajax in Custom Components
- Supporting f:ajax in Custom Components
- 12 EXTERNAL SERVICES
- Database Access with JDBC
- Issuing SQL Statements
- Connection Management
- Plugging Connection Leaks
- Using Prepared Statements
- Transactions
- Using the Derby Database
- Configuring a Data Source
- Accessing a Container-Managed Resource
- Configuring a Database Resource in GlassFish
- Configuring a Database Resource in Tomcat
- A Complete Database Example
- Using the Java Persistence Architecture
- A Crash Course in JPA
- Using JPA in a Web Application
- Using Managed Beans and Stateless Session Beans
- Stateful Session Beans: CDI
- Container-Managed Authentication and Authorization
- Sending Mail
- Using Web Services
- 13 HOW DO I ... ?
- How do I find more components?
- How do I support file uploads?
- How do I show an image map?
- 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 pop-up window?
- How do I selectively show and hide parts of a page?
- How do I customize error pages?
- How do I write my own client-side validation tag?
- How do I configure my application?.
- How do I extend the JSF expression language?
- How do I add a function to the JSF expression language?: JSF 2.0
- How do I monitor the traffic between the browser and the server?
- How do I debug a stuck page?
- How do I use testing tools when developing a JSF application?
- How do I use Scala with JSF?
- How do I use Groovy with JSF?
- Index.
- Notes:
- Bibliographic Level Mode of Issuance: Monograph
- Includes bibliographical references and index.
- Description based on publisher supplied metadata and other sources.
- ISBN:
- 9786612585739
- 9781282585737
- 1282585738
- 9780137013937
- 0137013930
- OCLC:
- 1027171873
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.