Core JavaServer faces

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 usefu...

Descripción completa

Detalles Bibliográficos
Otros Autores: Geary, David M Author (author), Horstmann, Cay S Contributor (contributor)
Formato: Libro electrónico
Idioma:Inglés
Publicado: [Place of publication not identified] Prentice Hall 2010
Edición:3rd ed
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628881606719
Tabla de Contenidos:
  • 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
  • Conclusion
  • 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
  • Conclusion
  • 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
  • Conclusion
  • 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
  • &lt
  • ui:debug&gt
  • &lt
  • ui:remove&gt
  • Handling Whitespace
  • Conclusion
  • 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
  • Conclusion
  • 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
  • Conclusion
  • 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
  • Method Expression Parameters: JSF 2.0
  • 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
  • Conclusion
  • 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
  • Conclusion
  • 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
  • Conclusion
  • 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
  • Conclusion
  • 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?
  • Conclusion
  • Index.