14
INTRODUCTION TO JAVA SERVER FACES(JSF) Shuang Hao

Introduction to Java Server Faces(JSF)

  • Upload
    elvis

  • View
    102

  • Download
    1

Embed Size (px)

DESCRIPTION

Introduction to Java Server Faces(JSF). Shuang Hao. What is JSF?. A standard Java framework for building Web applications. It simplifies development by providing a component -centric approach to developing Java Web user interfaces. JSF applications are event driven. - PowerPoint PPT Presentation

Citation preview

Page 1: Introduction to  Java Server Faces(JSF)

INTRODUCTION TO JAVA SERVER FACES(JSF)

Shuang Hao

Page 2: Introduction to  Java Server Faces(JSF)

WHAT IS JSF?

A standard Java framework for building Web applications.

It simplifies development by providing a component-centric approach to developing Java Web user interfaces.

JSF applications are event driven.

Page 3: Introduction to  Java Server Faces(JSF)

JSF ARCHITECTURE:

Page 4: Introduction to  Java Server Faces(JSF)

JSF LIFECYCLE

Page 5: Introduction to  Java Server Faces(JSF)

BENEFITS OF USING JSF:

JSF provides standard, reusable components for creating user interfaces for web applications.

JSF provides many tag libraries for accessing and manipulating the components.

It automatically saves the form data and repopulates the form when it is displayed at client side.

JSF encapsulates the event handling and component rendering logic from programmers, programmers just use the custom components.

JSF is a specification and vendors can develop the implementations for JSF.

There are many GUIs available these days to simplify the development of web based application based on JSF framework.

Page 6: Introduction to  Java Server Faces(JSF)

COMPONENTS

The true power of JSF in its user interface component model where applications are merely built from collections of components that can render themselves in diverse ways for multiple client types.

A simple component: Input Text:

Page 7: Introduction to  Java Server Faces(JSF)

EXAMPLES OF COMPONENTS:1. Menu component

2. Media component

3. Table component

Page 8: Introduction to  Java Server Faces(JSF)

A SIMPLE EXAMPLE:

Page 9: Introduction to  Java Server Faces(JSF)

EXAMPLE(CONT.):

Page 10: Introduction to  Java Server Faces(JSF)

WITH CORRECT PASSWORD

Displays the user name that is stored in the backing bean.

Page 11: Introduction to  Java Server Faces(JSF)

WITH WRONG PASSWORD:

Page 12: Introduction to  Java Server Faces(JSF)

CREATE A JSF PAGE

Page 13: Introduction to  Java Server Faces(JSF)

NAVIGATION:

JSF navigation links from the Welcome page to the Login page and then to the Hello page.

Page 14: Introduction to  Java Server Faces(JSF)

REFERENCES:

http://www.oracle.com/technology/tech/java/newsletter/articles/introjsf/index.html

http://www.roseindia.net/jsf/whatisjsf.shtml

What is JSF? Roosendaal - 22/09/2005, Gie Indesteege - ABIS Training & Consulting