Dette 2-dagers kurset lærer Java web-utviklere å bruke JavaServer Faces (JSF) i web-applikasjoner.
Beskrivelse:
Deltakerne lærer om standard JSF tab libraries og å skrive managed beans og event handlers. Man lærer også å skrive konfigurasjonsfiler for beans og navigering i XML. Datatabell-komponenter brukes for enkelt å vise frem data i en HTML-tabell fra databaser og andre datakilder. Validering og konvertering er også dekket. Kurset avsluttes med utvikling av egne komponenter og et vedlegg om internasjonalisering.
Målgruppe:
Web developers who want to efficiently create complex web applications.
Forkunnskaper:
Java Programming, Java Web Programming, and familiarity with HTML.
Getting Started with JSF
GUI Development
JavaServer Faces
A JSF Application
JSF Components
Managed Beans
Configuration Files
JSF Application Structure
Running the Application
JSF Tag Libraries
The JSF Component Tree
JSF Tag Libraries
Forms
Input Tags
Output Tags
Buttons and Links
Checkboxes
Radio Buttons, Listboxes, and Menus
Panels
Managed Beans
Managed Beans and MVC
Properties
Configuring Beans
Bean Scope
Value Bindings
Method Bindings
Dynamic Beans — Lists
Dynamic Beans — Maps
Advanced Property Initialization
JSF Lifecycle and Event Handling
JSF Lifecycle Overview
Restore View Phase
Apply Request Values Phase
Process Validation Phase
Update Model Values Phase
Invoke Application Phase
Render Response Phase
JSF Events
Action Events
Value Change Events
Immediate Events
Navigation
Navigating Through a JSF Application
Basic Navigation Configuration
From View Id
From Action
Forward vs. Redirect |
Data Table Component
Data and Tables
Basic Structure
Headers and Footers
Styles
Adding Editable Components
DataModel
Sorting
Scrolling
Validators and Converters
Validation and Conversion within the JSF Lifecycle
Converting Dates
Converting Numbers
Displaying Conversion Errors
Built-In Validators
Customizing Error Messages
Writing Your Own Converter
Custom Converter Configuration
Writing Your Own Validator
Introduction to Custom Components
Why Custom Components?
Important JSF API Classes
Custom Component Building Blocks
Writing the Custom Component Class
Encoding
Using the ResponseWriter
Decoding
Writing the Tag Class
Building the TLD
Configuring the Custom Component
Using the Custom Component
Appendix - Internationalization
I18N and L10N
Resource Bundles
Configuring a Resource Bundle
Using a Resource Bundle
Specifying the Locale
I18N in Custom Code
Dates and Numbers |