Search our courses
Training

This Web Application Programming with Java EE 6 Weblogic 12C Eclipse training course will show participants how to easily create quality Java web applications using all of the features of JSF. Also covered is an overview of Servlet/JSP technology for web applications, using EJB for business logic, JPA for persistence, and the CDI specification for dependency injection.

Programming Java web applications has been greatly simplified with the JavaServer Faces (JSF) specification. With the introduction of the most recent JSF 2.0 version this has been expanded even further to include many advanced features and solve weaknesses of previous JSF versions. Web application programmers that utilize JSF as opposed to the “traditional” Servlet/JSP model can spend more time focusing on the functionality of the application and less on the raw programming required to parse and validate request data and share data between web components.

Objectives

This class combines lecture with hands-on experience, and open ended discussion that will help the developer quickly understand how to program web applications using Java EE 6. Upon completion of the course, students will:

  •     Have an overview of the Servlet/JSP web technologies
  •     Develop web based applications using JavaServer Faces
  •     Develop business logic layer using EJB 3.1
  •     Persist data using Java Persistence (JPA)
  •     Use CDI (Contexts and Dependency Injection) to perform type-safe dependency injection of components
  •     Use the JSF 2.0 integration with CDI including the CDI support of “conversational” web applications
  •     Define standardized data validation constraints with JSR 303 Bean Validation

Topics

  •     Servlet/JSP
  •     Web applications using JavaServer Faces
  •     Various JSF page components
  •     Enterprise JavaBeans (EJB)
  •     Java Persistence (JPA)
  •     JSR 303 Bean Validation

Web Application Programming with Java EE 6 Weblogic 12C Eclipse

Course Code

GTJ26

Duration

5 Days

Course Fee

POA

Accreditation

N/A

Target Audience

  • Software designers, developers and programmers new to Java EE or with J2EE 1.4 or earlier experience

Attendee Requirements

Participants should already have an understanding of Java programming. For those that require Java experience before this course the following course is suggested:

Expand all

Course Description

This Web Application Programming with Java EE 6 Weblogic 12C Eclipse training course will show participants how to easily create quality Java web applications using all of the features of JSF. Also covered is an overview of Servlet/JSP technology for web applications, using EJB for business logic, JPA for persistence, and the CDI specification for dependency injection.

Programming Java web applications has been greatly simplified with the JavaServer Faces (JSF) specification. With the introduction of the most recent JSF 2.0 version this has been expanded even further to include many advanced features and solve weaknesses of previous JSF versions. Web application programmers that utilize JSF as opposed to the “traditional” Servlet/JSP model can spend more time focusing on the functionality of the application and less on the raw programming required to parse and validate request data and share data between web components.

Objectives

This class combines lecture with hands-on experience, and open ended discussion that will help the developer quickly understand how to program web applications using Java EE 6. Upon completion of the course, students will:

  •     Have an overview of the Servlet/JSP web technologies
  •     Develop web based applications using JavaServer Faces
  •     Develop business logic layer using EJB 3.1
  •     Persist data using Java Persistence (JPA)
  •     Use CDI (Contexts and Dependency Injection) to perform type-safe dependency injection of components
  •     Use the JSF 2.0 integration with CDI including the CDI support of “conversational” web applications
  •     Define standardized data validation constraints with JSR 303 Bean Validation

Topics

  •     Servlet/JSP
  •     Web applications using JavaServer Faces
  •     Various JSF page components
  •     Enterprise JavaBeans (EJB)
  •     Java Persistence (JPA)
  •     JSR 303 Bean Validation
Course Outline

CHAPTER 1. OVERVIEW OF SERVLETS

Java Servlet

Java EE and Servlet

Servlet Responsibilities

The Servlet Container

The Servlet Class

The HttpServlet Class

Servlet Configuration – web.xml

Servlet Configuration – Annotations

Life Cycle – Request Processing

User Input

Example – User Input

Request

Request Parameters

Request Attributes

Response

Tracking User State

Tracking Techniques

Using HttpSession

Session Invalidation

CHAPTER 2. OVERVIEW OF JAVASERVER PAGES (JSP)

JavaServer Pages

A Simple Example – Hello.jsp

JSP Benefits

How JSP Works

JSP Scripting Elements

JSP Directive

JSP Declarations

Declarations – an Example

JSP Expressions

JSP Expressions – an Example

JSP Scriptlets

JSP Scriptlets – an Example

JSP Comments

JSP Predefined Variables

The request Object

The response Object

The out Object

Out – an Example

MVC Implementation

Request Dispatching – Forward Request to JSP

Using Java Beans in JSP

CHAPTER 3. INTRODUCTION TO JAVASERVER FACES

What is JavaServer Faces (JSF)?

Why Use JSF?

Nature of a JSF Application

The Sun Reference Implementation (RI)

JSF and MVC

Faces Servlet

Managed Bean

The View

Facelets

Facelets in JSF 2

A Simple JSF Application

The Input Form: form.xhtml

The Result: thanks.xhtml

The Controller: AddressBean

Page Flow or Navigation Rule

How Does the Application Work?

Under the Covers: The Rendered Form HTML

Under the Covers: The Layout Tree

CHAPTER 4. BASIC JSF USER INTERFACE COMPONENTS

JSF UI Components

JSF Component Tag Libraries

Using the Tag Libraries

HTML Tag Library

Identifying Components

Component Identifier

Client Identifier

Form Input Field Names

Define a Form

Labels and Images

Buttons

Links

Adding Parameters to Links

Text Input

Simple Check Box

Check Box Group

Check Box Group Example

Radio Button

List Boxes

Dynamic List Box

Example

Another Example

JSF Core Library

JSF Core Library – Components

CHAPTER 5. MANAGED BEAN SCOPES IN JSF

Managed Bean Scopes

Implications of Various Scopes

View Scoped Managed Beans

Defining Managed Bean Scope

Getting Rid of the Session

Application Scope

“None” Scope

Custom Scopes

CHAPTER 6. OVERVIEW OF CONTEXTS AND DEPENDENCY INJECTION

Once upon a time

What is CDI?

The JSRs

CDI Example

What Good is DI

Old Bean Scope

CDI Bean Scope

Other Advanced Features of CDI

CDI Implementation

CHAPTER 7. DEFINING CDI BEANS

Requirements of Bean Classes

Bean Initialization Methods

beans.xml

Managed Bean Type

Using Beans with EL

Beans Have Default Names

Bean Scopes

EJBs in CDI

CHAPTER 8. JSF INTEGRATION, SCOPE AND CONTEXT

CDI Beans in JSF

JSF Example

Introduction to Scopes

Normal and Pseudo- scopes

Declaring Scope of a Bean

Scope Boundaries

Instance Sharing

Conversation Scope

Use Cases of Conversation Scope

Starting and Ending Conversations

Propagating Conversations

How Dependent Scope Works

Forcing a Dependent Instance

CHAPTER 9. ADVANCED MANAGED BEANS

@ManagedProperty Annotation

Value Binding

Property Data Conversion

Advanced Property Types

Component Binding

Other Binding Types

Basic Input Processing

Advanced Input Processing

JSF Expression Language

Language Basics

Use of Expression in JSF

Basic Expression

Property Access Expression

Map Access Expression

Complex Access Expression

Predefined Objects

Operators

CHAPTER 10. JSF EVENT HANDLING

Request Processing Phases

Action Request Processing Phases

JSF Event & Listener Model…

JSF Event Classes

Event Classes

Event Classes: Hierarchy

Action Event Handling

Action Event: Example

Action Listener

Value Change Event

Value Change Event Handler

Listener Classes

Listener Interfaces

Listener Classes: Hierarchy

Action Listener Class

Value Change Listener Class

Phase Event Listener

Request Processing Lifecycle

Phase Identifiers

CHAPTER 11. JSF NAVIGATION

JSF Navigation

Example Action Listener

faces-config.xml File

JSF Navigation

Choosing Between Redirect & Direct Rendering

Navigation Rules: Example

Navigation: Scenarios

CHAPTER 12. JSF GET REQUESTS AND VIEW PARAMETERS

Using GET Requests with JSF

POST-Redirect-GET (PRG) Pattern

Implementing PRG Pattern With JSF

Defining View Parameters

New <h:link> and <h:button> Tags

Passing Request Parameters

Passing Request Parameters from POST Action Methods

Causing Redirection

Using a PreRenderView Event

The Flash Object

CHAPTER 13. OVERVIEW OF ENTERPRISE JAVABEANS (EJB)

Need for EJBs

Distributed Computing

Distributed Transaction

Distributed Security

What are EJBs?

Main Characteristics of EJBs

EJB Client

EJB Container

Enterprise JavaBeans

Session Beans

Message-Driven Beans (MDBs)

Stateless Session Bean

Annotations

Stateless Session Bean Components

Example: Business Interface

Example: Bean Class

Business Interface Details

CHAPTER 14. OVERVIEW OF JAVA PERSISTENCE API

Data Persistence

Java Persistence API

Entities

Session EJB vs JPA Entities

Entities

Persisting and Retrieving Data

Accessing Entities

EntityManager & Persistence Unit

Persistence Context

Entities – Example

persistence.xml – Hibernate Provider

persistence.xml – Open JPA Provider

persistence.xml – Toplink

Entity Instance Lifecycle

Creating EntityManager in Session EJB

Creating EntityManager in a Plain Java Class

Working With the EntityManager Interface

Transaction Basics

CHAPTER 15. JSR 303 BEAN VALIDATION

Validation in Applications

Using Validation

Built-in Validation Constraints

Using Constraints

Showing Error Messages in JSF

Custom Validation Messages

Externalizing Validation Messages

External Message Example

Defining Custom Constraints

Custom Constraint Example

Interface

Validator

Custom Constraint in JSF

Bootstrapping Validation

The Validator API

Validation Groups

Group Example

Using Bean Validation in JPA 2.x and JSF 2.x

CHAPTER 16. ADVANCED JSF USER INTERFACE COMPONENTS

HTML Panel

Applying Styles

Grouping Components

Data Table

Using a Data Table

Data Table Model

Using a Data Table

Displaying a Header and Footer Row

Applying Styles

Adding Links to a Row

Using Component Binding

Handling Action

Using the Data Table Model

Handling Action

CHAPTER 17. USING JSTL WITH JSF

Introduction to JSTL

Using JSTL with JSF

The <c:out> Tag

The <c:if> Tag

The <c:choose> Tag

The <c:forEach> Tag

<c:forEach> or <h:dataTable>?

CHAPTER 18. USING AJAX WITH JSF

Integrated AJAX Support in JSF 2.0

Challenges of AJAX with JSF

AJAX Handling in JSF 2.0

AJAX Handling in JSF 2.0 (cont’d)

Request Lifecycle for AJAX Requests

JSF JavaScript API

New <f:ajax> Tag

Partial Page Rendering

Third Party JSF Libraries with AJAX

Component Libraries Available

CHAPTER 19. JSF TECHNIQUES

A Typical Application

The Create Form

Create Action Method

Listing Items

Editing an Item

Adding the Edit Link

The Edit Form

Update Item

Things to Keep in Mind

CHAPTER 20. FACELETS PAGES AND TEMPLATES

Facelets

Facelets in JSF 2

Using Facelets

Page Templates

Define a Page Template

Define a Template Client

Run the Template Client

CHAPTER 21. FACELETS COMPOSITE COMPONENTS

Simplified Custom JSF Components

Defining a Library of Composite Components

Referencing the Library

Defining a Composite Component

Using a Composite Component

Simple Text Inclusion

Defining and Setting Component Attributes

Value Attributes

Other Composite Component Features

Learning Path

There are a number of options of suitable follow-on courses, depending on your business needs. Please Contact Us for further details.

Ways to Attend
  • Attend a public course, check our schedule
  • Private onsite Team training also available

Private Team Training is available for this course

We deliver this course either on or off-site in various regions around the world, and can customise your delivery to suit your exact business needs. Talk to us about how we can fine-tune a course to suit your team's current skillset and ultimate learning objectives.

Private Team Training | Contact us

Technical ICT learning & mentoring services

Private Team Training

Our instructors are specialist consultants with vast real world experience and expertise allowing them to design and deliver client-focused courses for your organisation.

Learn more about our Private Team Training

What Our Clients Say

"For a senior technical person, the best of this course is setting a structured and methodical approach for evaluation techniques we already use. It would be also very beneficial to senior managers (100+ reports). There is a huge hype on Gen AI at the moment, and this course will help them see the potential, current limitations and pitfalls of this technology".

 

Critical Thinking with AI for tech professionals

In-person course October '25

 


“It was very positive. This course was 4 days but covered a semester worth of work if it was done in college. The labs were relevant and delegates were provided the lab/coursebook for further study and practice after the course finished. GuruTeam's course was excellent and provides a deeper understanding of the architecture and how it all works. The hands-on aspect was very helpful as it helped solidify the concepts as I went along."

 

Kubernetes Administration Certification - GTLFK

Live Online September 2024

 

 

 

“The Instructor was very knowledgeable, laid back and very approachable during the course. The environment setup was second to none.  Very easy to jump in and follow along with minimal pre-req setup."

Kubernetes Administration Certification - GTLFK

Onsite May 2024

 

“The experience was complete for me. I like how the training was sequenced - the slides organization, the examples and explanations and then the exercises. Time for exercises and support by the Instructor was great plus answering the questions and going out for answers and coming back with examples as brilliant. I loved how much I refreshed and how I learned and got inspired to improve stuff at work.”

 

Docker - GTDK1

Live Online December 2024

 

“Great instructor, who encouraged active participation. The breakout groups and exercises kept the group engaged and the content relevant to our own products”.

 

Site Reliability Engineering Foundation - GTDSRE

Live Online January 2022

 

 

 

"Intelligence is the ability to avoid doing work, yet
getting the work done"

Linus Torvalds, creator of Linux and GIT

Technical ICT learning & mentoring services

About GuruTeam

GuruTeam is a high-level ICT Learning, Mentoring and Consultancy services company. We specialise in delivering instructor-led on and off-site training in Blockchain, Linux, Cloud, Big Data, DevOps, Kubernetes, Agile, Software & Web Development technologies. View our Testimonials

Download our eBrochure
Our Accreditation Partners
  •  
  •  
  •  

 

Upcoming Courses

Kubernetes Admin

Dates to be confirmed

 Live Online
 GMT +01:00  09:30 - 17:00 hrs

This Kubernetes Administration
Certification training course is
suitable for anyone who wants
to learn  the skills necessary to build and administer a Kubernetes cluster.

 

LEARN MORE

RUST PROGRAMMING INTRODUCTION

Dates to be confirmed

 Live Online
 GMT +01:00  09:30 - 17:00 hrs

This Rust Programming Introduction training course will help you understand what Rust applications look like, how to write Rust applications properly, and how to get the most out of the language and its libraries.
 

Learn More

NEW FAST TRACK PYTHON SERIES

Dates to be confirmed

Live Online
GMT +01.00  09:30 - 17:00 hrs

Hit the ground running.....
GuruTeam’s new Python Fast Track series Instructor-led live online training
designed & delivered by industry experts.

Python Fast Track I Comprehensive
Python Fast Track II Expert
Python Fast Track III for Data Science

 

 

 

Learn More

GO PROGRAMMING INTRODUCTION

 Dates to be confirmed
  

Live Online
GMT +01:00  09:30 - 17:00 hrs

This Go Programming Introduction training course will help you understand how Go works, and immediately be more productive. If you are building a team using Go, this will be a great opportunity to get your team on the same page and speaking the same language.

Learn More

Newsletter

Stay up to date, receive updates on scheduled dates, new courses, offers, and events.

Subscribe to our Newsletter