LOGO For Immediate Assistance Call 855-211-9361

Enterprise

Fundamentals of JavaServer Faces

Price: $1,170.00

Call for availability 855-211-9361

JavaServer Faces (JSF) is Sun's preferred framework for developing rich user interfaces to Web-based applications. This course teaches the fundamentals of using this framework to create views, add UI components, and validate user input. Students will learn to write "backing-beans" that maintain the state of the application and can respond directly to user input. The course also covers binding components to data and bean properties using JSF's Expression Language (EL), writing action handlers, handling navigation, internationalization, and more!

Course Overview

By the end of the class students will be able to:

  • Understand the JSF framework, and where it fits in building Java-based Web applications
  • Learn to create views and add standard interface components
  • Understand the phases in the JSF life cycle
  • Learn to manipulate both output and input elements with backing-beans
  • Understand how to work with and customize the powerful navigation architecture in JSF
  • Learn to work with validators and converters
  • Understand how to bind components to data, ranging from simple collections to JDBC results
  • Learn EL inside of JSF

Prerequisites

900 PB Tech Capstone Series: Java Developer Or equivalent experience working with Java and JavaServer Pages(JSP).

Course Outline

  • JSF Intro Overview

    • Understanding JSF
      • Different views of JSF
      • Comparing JSF to standard servlet/ JSP technology
      • Comparing JSF to Apache Struts
  • Controlling JSF Page Navigation

    • JSF flow of control
    • The basic steps in using JSF
    • Static navigation
      • One result mapping
    • Dynamic navigation
      • Multiple result mappings
  • Managed Beans

    • Using beans to represent request parameters
    • Declaring beans in faces-config.xml
    • Outputting bean properties
      • Standard JSF approach
      • JSP 2.0 expression language
  • The JSF Expression Language

    • Motivating use of the expression language
    • Comparing to the JSP 2.0 EL
    • Accessing bean properties
    • Submitting bean properties
      • Expressions in output values
      • Expressions in submission values
      • Expressions for action controllers
    • Accessing collection elements
    • Using implicit objects and operators
  • JSF Properties Files

    • Loading properties files
    • Simple messages
    • Parameterized messages
    • Internationalized messages
  • JSF Event Handling

    • Comparing action controllers to event listeners
    • Action listeners
    • Value change listeners
    • Using JavaScript to submit form
      • Browser incompatibilities
    • Combining action listeners and action controllers in the same GUI element
  • The JSF "h" (HTML) Package

    • Most common usage
    • Shared attributes
    • Implied attributes
    • Elements that can invoke action controllers/listeners
    • Elements that can invoke value change listeners
    • Elements that display lists of items
  • Validating User Input

    • Manual validation
    • Implicit automatic validation
    • Explicit validation
    • MyFaces validators
    • Creating custom validators
  • Accessing Databases with JDBC

    • Overview of JDBC technology
    • JDBC drivers
    • Seven basic steps in using JDBC
    • Using JNDI with JDBC
    • Retrieving data from a ResultSet
    • Using prepared and callable statements
    • Submitting multiple statements as a transaction
  • Using JSF Data Tables

    • Motivation
    • Basic syntax
    • Defining table headings
    • Formatting tables with style sheets
    • Displaying database tables