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 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 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
12/25/202312/28/2023
1/15/20241/18/2024
2/5/20242/8/2024
2/26/20242/29/2024
3/18/20243/21/2024
4/8/20244/11/2024
4/29/20245/2/2024
5/20/20245/23/2024
6/10/20246/13/2024
7/1/20247/4/2024
7/22/20247/25/2024
8/12/20248/15/2024
9/2/20249/5/2024
9/23/20249/26/2024
10/14/202410/17/2024
11/4/202411/7/2024
11/25/202411/28/2024
12/16/202412/19/2024
1/6/20251/9/2025

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
Menu items
Submenus
Dynamic Menus
Menubars
TabView components
With Tabs
Panel Components
AccordionPanel
OutputPanel and Ajax