Introduction to JavaServer™ Faces (JSF)
Java Server Faces (JSF) is the MVC web framework based on Java Programming Language. JSF mainly focus on simplifying the building of web user interface by providing ready to use UI tags. It simplifies the assembling of reusable UI components in a page.
Javaserver Faces is based on a component-driven UI design model, using XML files called view templates or Facelets views. Requests are processed by the FacesServlet, which loads the appropriate view template, builds a component tree, processes events, and renders the response (typically HTML) to the client.
- JSF 2.0 is compatible with JavaEE 5+ application servers or any server which implements Servlet 2.5 +
- Built in templates with Facelets.
- Adding ajax support is as easy as adding a tag.
- Easy reusable component creation.
- Support for internationalization
- Allowed to use annotations to declare navigations, managed beans or CDI bean.
In this tutorial we will concentrate on JSF 2.x version. JSF 2.1 is the latest version available. These tutorials cover JSF 2.0 using Mojarra JavaServer™ Faces.
A JavaServer Faces 2.0 Hello World example will give you kick start for your JSF 2.0 learning. This example will give detail about how to setup JSF development environment, dependencies, configuration, writing the managed beans and using JSF UI components.