JavaServer Faces (JSF) and MVC frameworks

Study for Week 4

JavaServer Faces is an MVC framework. It is designed to simplify the creation of rich and powerful web applications.

This is the last week of presentation layer technologies. It starts with a quick revision of MVC technologies. Then it dives deeper into JavaServer Faces (JSF) and its lifecycle.

At the end of this session, you should be able to:

  • Understand the purpose of MVC frameworks
  • Recognize that JavaServer Faces (JSF) is an MVC framework
  • Apply the MVC patterns used in JSF to build a web application
  • Create a backing bean
  • Wire a backing bean to the user interface
  • Configure navigation
  • Use validation

MVC frameworks

An introduction to Model-View-Controller (MVC) frameworks:

JavaServer Faces

JavaServer Faces is the MVC framework recommended for use with Java EE:

JavaServer Faces lifecycle

The stages of handling a JavaServer Faces request:

If you would like to study further, you may like to read Chapters 10 and 11 of "Beginning Java EE 7":
http://find.lib.uts.edu.au/?R=OPAC_b2874770