TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Introduction To JSF
Jainish Shah
Sep 30, 2019
8.4
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog, you will learn about JSF.
What is JSF?
JSF stands for Java Server Faces.
JSF is a framework that allows us to make a nice user interface with the help of the reusable UI components.
It provides built-in support for the validation of the data entered by the user.
JSF framework is based on the Model-View-Controller (MVC) design pattern.
Advantages of JSF
Easy UI Creation: With the help of the reusable and built-in UI components, it's easy to make a nice and attractive UI.
Easy Validation: JSF provides the built-in validators and converters to validate and convert the user input.
MVC design pattern: MVC segregates the business, controller and presentation logic.
Faster development: Due to the segregation of the business and presentation layer, the designer and developer can work simultaneously to build Web Applications. This reduces the development of life cycle time.
Supports multiple client devices: JSF provides the different renderers to allow the rendering of the UI on the different client devices (Computers, mobile phones, tablets etc).
Overview of JSF Architecture
JSF is based on an MVC design pattern. Thus, the architecture mainly consists of the model, view, and controller.
The Web Browsers and the Wireless Markup Language (WML) Browsers display the views to us like in any other Web Application.
We need a controller to process the requests. The FacesServlet is a controller component present in javax.webapp.faces package. FacesServlet helps to manage the JSF request processing life cycle. It accepts and processes the client requests and forwards them to the appropriate renderer component. The HTML Browser request is forwarded to the HTML renderer kit and the WML Browser request is forwarded to the WML renderer kit.
The renderer kit makes the response with the help of JavaBeans (models) and displays the response to the Client Browser.
JSF
Java
Next Recommended Reading
Introduction To EJB (Enterprise Java Beans)