Java Training Overview
This two-day course teaches Java web developers how to use JavaServer Faces in their web applications. JavaServer Faces (JSF) is a specification that applies traditional GUI frameworks and architectures to web applications. Students will learn the standard JSF tag libraries and write managed beans and event handlers. They will also write configuration files for managed beans and navigation in XML. Data table components are used to easily display data from databases and other sources in an HTML table. Validation and conversion is then covered including customization of these phases. This course ends with creation of custom components and an appendix on internationalization topics.
Audience
- Web developers who want to efficiently create complex web applications..
Java Training Prerequisites
- Java Programming and JavaServer Pages. Programming experience with Java Servlets recommended.
Java Training Learning Objectives
- Describe the JavaServer Faces (JSF) architecture
- Build a JSF component tree with Core and HTML tag libraries
- Create JavaBeans with properties and methods that are bound to JSF components
- Describe the six phases of the JSF request-processing life cycle
- Use both Action Events and Value Change Events to react to user interface interactions
- Perform configuration of JSF applications
- Use the data table component to present tabular information
- Write your own validators and converters to validate user input
- Write a custom component to aggregate two or more simpler components
Java Training Course duration
2 Days
Java Training Course outline
1.Course Introduction
- Course Objectives
- Overview
- Suggested References
2 . Getting Started with JSF
- GUI Development
- JavaServer Faces
- A JSF Application
- JSF Components
- Managed Beans
- Configuration Files
- JSF Application Structure
- Running the Application
3 . 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
4 . Managed Beans
- Managed Beans and MVC
- Properties
- Configuring Beans
- Bean Scope
- Value Bindings
- Method Bindings
- Dynamic Beans - Lists
- Dynamic Beans - Maps
- Advanced Property Initialization
5 . 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
6 . Navigation
- Navigating Through a JSF Application
- Basic Navigation Configuration
- From View Id
- From Action
- Forward vs. Redirect
7 . Data Table Component
- Data and Tables
- Basic Structure
- Headers and Footers
- Styles
- Adding Editable Components
- DataModel
- Sorting
- Scrolling
8 . 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
9 . 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
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
Minimum Hardware/Software Requirements
Course exercises require Windows 2000 or XP. J2EE 1.4 SDK and Sun Java System Application Server Platform Edition1.4 are required. Web browser should be IE 6+ or Mozilla. See the appropriate course Setup Guide for details.
A good minimal hardware profile for this course would have a Pentium 500-MHz or equivalent CPU, 256 MB of RAM, and at least 1 GB of free disk space for tools installation and courseware.
|