Introduction to JSF 2 with Primefaces

Description

Duration: 4 days

In this 4 Day course, students learn how to build Web and Ajax applications using JSF 2 and Primefaces.

By the end of this course, students will be able to:

  • Understand the lifecycle 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
  • Create a simple Ajax application to receive data from a server and modify the web page asynchronously
  • Create a custom JSF component that will implement basic Ajax functionality
  • Use PrimeFaces to implement Ajax functionality within an existing application and create a richer user interface

Prerequisites

It is recommended that students interested in taking this course have:

A Solid foundation in Java programming and OO principles

What’s included?

  • Authorized Courseware
  • Intensive Hands on Skills Development with an Experienced Subject Matter Expert
  • Hands on practice on real Servers and extended lab support 1.800.482.3172
  • Examination Vouchers & Onsite Certification Testing- (excluding Adobe and PMP Boot Camps)
  • Academy Code of Honor: Test Pass Guarantee
  • Optional: Package for Hotel Accommodations, Lunch and Transportation

With several convenient training delivery methods offered, The Code Academy makes getting the training you need easy. Whether you prefer to learn in a classroom or an online live learning virtual environment, training videos hosted online, and private group classes hosted at your site. We offer expert instruction to individuals, government agencies, non-profits, and corporations. Our live classes, on-sites, and online training videos all feature certified instructors who teach a detailed curriculum and share their expertise and insights with trainees. No matter how you prefer to receive the training, you can count on The Code Academy for an engaging and effective learning experience.

Methods

  • Instructor Led (the best training format we offer)
  • Live Online Classroom – Online Instructor Led
  • Self-Paced Video

Speak to an Admissions Representative for complete details

StartFinishPublic PricePublic Enroll Private PricePrivate Enroll
03/30/202004/02/2020
04/20/202004/23/2020
05/11/202005/14/2020
06/01/202006/04/2020
06/22/202006/25/2020
07/13/202007/16/2020
08/03/202008/06/2020
08/24/202008/27/2020
09/14/202009/17/2020
10/05/202010/08/2020
10/26/202010/29/2020
11/16/202011/19/2020
12/07/202012/09/2020
12/28/202012/31/2020

Curriculum

Module 1: 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

Module 2: 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

Module 3: 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

Module 4: 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)

Module 5: 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

Module 6: 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

Module 7: 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)

Module 8: Writing Custom Components

The makeup of a Custom Component
Using the component in a JSP
Using attributes with a custom tag
Custom components that provide input

Module 9: Page composition using Facelets

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

Module 10: Ajax Overview

XMLHttpRequest
GET vs. POST Requests
Leveraging Ajax in Web Applications
Connecting to the Server – Ready State and Status
Updating the Document Object Model for the Page

Module 11: Introduction to PrimeFaces

PrimeFaces Background
PrimeFaces Pros and Cons
Configuring PrimeFaces
Optional Files
Using Ajax in RichFaces
Partial Page Submission and Rendering
Ajax Push
Calendar Component and Options
DataTable component
Pagination
Sorting
Tree Component
TreeNodes
TreeRoot
Calendar Component
Menus
Menuitems
Submenus
Dynamic Menus
Menubars
TabView components
With Tabs
Panel Components
AccordionPanel
OutputPanel and Ajax