Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Introduction To JSF
WhatsApp
Jainish Shah
5y
8.5
k
0
1
25
Blog
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
Up Next
Introduction To EJB (Enterprise Java Beans)
Ebook Download
View all
Programming in Java
Read by 629 people
Download Now!
Learn
View all
Membership not found