Introduction to Jakarta Server Faces 2

104 Ratings

Course Number: JSF-104

Duration: 4 days (26 hours)

Format: Live, hands-on

JSF 2 Training Overview

In Accelebrate's Introduction to Jakarta Server Faces 2 training class, attendees learn how to rapidly build Java web applications using JSF 2.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some Java courses are available as live, online classes for individuals.

Objectives

  • Understand the lifecycle phases of a JSF application request and response, and effectively use different events within a JSF application
  • Create and maintain JSF component classes and tags within Facelets in response pages
  • Understand and use the JSF Expression Language(EL)
  • Develop and maintain JSF managed beans
  • Manage navigation with Action methods and Listeners
  • Use validators and type conversion in JSF applications
  • Create a customized JSF GUI component
  • Create Facelets templates to implement a common look-and-feel for JSF applications
  • Identify and implement composition components for reusable display elements

Prerequisites

All attendees should have a solid foundation in Java programming and OO principles.

Outline

Expand All | Collapse All

JSF Overview
  • Model View Controller
  • JSF elements - web.xml and faces-config.xml
  • The power of Facelets
    • tile-like composition
    • debugging/error handling
    • custom logic tags and expressions
    • XHTML
  • JSF 2 - quick summary of features
  • Annotations - a review
GUI Components 1
  • Component Families
  • UIViewRoot and the FacesContext
  • The JSF lifecycle
    • GET vs. POST(JSF 2)
  • Facelets pages
  • Output components - text and labels
  • Forms
  • Formatting output
  • Inputting text and passwords
  • Messages and severity
Navigation in JSF applications
  • Navigation rules and cases via annotations
  • Static vs. dynamic actions
  • Declaring navigation in faces-config.xml
  • JSF Expression Language
    • Comparison to JSP EL
    • Basic syntax
    • Array, Map and List access in JSF EL
    • JSF EL Operators
    • JSF EL Implicit Objects
Backing Beans
  • The uses of backing beans
  • Declaring managed beans and properties via annotations
    • Managed beans and properties in faces-config.xml
  • Lists and Maps properties in Managed Beans
  • Using the FacesContext
  • Action methods in backing beans
  • Connecting to back-end services
    • business logic
    • persistence
Conversion and Validation
  • Conversion and Validation in the JSF Lifecycle
  • Implicit and explicit conversion
  • Date/Time conversion
  • Number conversion
  • Standard input validators
  • Implementing validation in backing beans
  • Displaying conversion/validation error messages
  • Custom converters and validators
  • Client-side validation
JSF Events
  • The phases of JSF
    • Restore View
    • Apply Request Values
    • Process Validations
    • Update Model Values
    • Invoke Application
    • Render Response
  • GET vs. POST
    • creating the view tree
    • rendering the existing view tree
  • Page actions (JSF 2)
  • Action Events
    • Action methods and Action Listeners
    • Methods of ActionEvent and UIComponent
  • Value Change Events
    • Methods of ValueChangeEvent
  • Phase Events
    • Registering a Phase Listener
    • Specifying which requests are handled by the Phase Listener
  • Data Model Events
GUI Components 2
  • Selecting items from lists
  • Checkboxes and radio buttons
  • Command Buttons and Command links
  • Panel Group and Panel Grid
  • Data Tables
    • display-only data tables
    • "interactive" data tables
  • New JSF 2 components - Date Picker, Tabbed View, Tree and File Upload
Writing Custom Components
  • The makeup of a Custom Component
    • JSF 1.1 and 1.2
    • JSF 2
  • Using the component in a JSP
  • Using attributes with a custom tag
  • Custom components that provide input
Page composition using Facelets
  • Templating
    • creating a Facelets template
    • creating a Facelets client page
    • creating a Facelets content page
  • Passing parameters to pages
  • Facelets and JSTL
  • Facelets composition components
    • defining a composition component
    • using a composition component
    • tips and tricks
  • Using other tag libraries
    • taglibs supporting Facelets
Conclusion

Training Materials:

All JSF training students receive comprehensive courseware.

Software Requirements:

  • JDK 8 or later
  • Lab files that Accelebrate will provide (which include Tomcat, a database, code files, and more)
  • Modern web browser
  • Other free software - please contact us if you have purchased this class


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan