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
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
1/27/20251/30/2025
2/17/20252/20/2025
3/10/20253/13/2025
3/31/20254/3/2025
4/21/20254/24/2025
5/12/20255/15/2025
6/2/20256/5/2025
6/23/20256/26/2025
7/14/20257/17/2025
8/4/20258/7/2025
8/25/20258/28/2025
9/15/20259/18/2025
10/6/202510/9/2025
10/27/202510/30/2025
11/17/202511/20/2025
12/8/202512/11/2025
12/29/20251/1/2026

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