封面
版权页
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Dynamic Access to JSF Application Data through Expression Language (EL 3.0)
EL syntax
EL immediate and deferred evaluation
EL value expressions
EL method expressions
The conditional text in JSF
Writing a custom EL resolver
EL 3.0 overview
Summary
Chapter 2. Communication in JSF
Passing and getting parameters
Managed bean communication
Summary
Chapter 3. JSF Scopes – Lifespan and Use in Managed Beans Communication
JSF scopes versus CDI scopes
The request scope
The session scope
The view scope
The application scope
The conversation scope
The flow scope
Dependent pseudo-scope
The none scope
The custom scope
Managed bean instantiation
Beans injection
Summary
Chapter 4. JSF Configurations Using XML Files and Annotations – Part 1
JSF 2.2 new namespaces
JSF 2.2 programmatic configuration
Configuring managed beans in XML
Working with multiple configuration files
Configuring locales and resource bundles
Configuring validators and converters
Configuring navigation
Configuring action listeners
Configuring system event listeners
Configuring phase listeners
Working with @ListenerFor and @ListenersFor
Summary
Chapter 5. JSF Configurations Using XML Files and Annotations – Part 2
Configuring resource handlers
Configuring the view handler
Overriding JSF renders
Working with client behavior functionality
JSF factories
Combined power of multiple factories
Summary
Chapter 6. Working with Tabular Data
Creating a simple JSF table
The CollectionDataModel class of JSF 2.2
Sorting tables
Deleting a table row
Editing/updating a table row
Adding a new row
Displaying row numbers
Selecting a single row
Selecting multiple rows
Nesting tables
Paginating tables
Generating tables with the JSF API
Filtering tables
Styling tables
Summary
Chapter 7. JSF and AJAX
A brief overview of the JSF-AJAX lifecycle
A simple JSF-AJAX example to get started
The JSF-AJAX attributes
Grouping components under <f:ajax> tag
Updating input fields with AJAX after validation error
Mixing AJAX and flow scope
Postback and AJAX
Is it a non-AJAX request?
AJAX and <f:param>
Queue control for AJAX requests
Explicit loading of jsf.js
AJAX and the progress bar/indicator
Summary
Chapter 8. JSF 2.2 – HTML5 and Upload
Working with HTML5 and JSF 2.2
JSF 2.2 upload feature
Summary
Chapter 9. JSF State Management
JSF saving the view state
JSF 2.2 is stateless
JSF security notes
Summary
Chapter 10. JSF Custom Components
Building noncomposite custom components
Building composite components
Summary
Chapter 11. JSF 2.2 Resource Library Contracts – Themes
Working with contracts
Styling tables with contracts
Styling UI components with contracts
Styling contracts across different devices
Writing contracts for composite components
Writing a theme switcher
Configuring contracts in XML
Packaging contracts in JARs
Summary
Chapter 12. Facelets Templating
A brief overview of the Facelets tags
Creating a simple template – PageLayout
Passing parameters via <ui:param>
Passing bean properties and action methods via <ui:param>
Exploiting the <ui:decorate> and <ui:fragment> tags
Iterating with <ui:repeat>
Working with <ui:include> and <f:viewParam>
Working with <ui:include> and <ui:param>
Debugging with <ui:debug>
Removing the content with <ui:remove>
Using the jsfc attribute
Extending the PageLayout template
Facelets' programmatic aspects
Facelets pitfalls
Summary
Appendix A. The JSF Life Cycle
Index
更新时间:2021-12-08 12:41:57