JSF Interview Questions and Answers
Prepare for your Interview today!
JSF stands for Java Server Faces. JSF has set of pre-assembled User Interface (UI). By this it means complex components are pre-coded and can be used with ease. It is event-driven programming model. By that it means that JSF has all necessary code for event handling and component organization. Application programmers can concentrate on application logic rather sending effort on these issues. It has component model that enables third-party components to be added like AJAX.
Following things required for JSF:
JSF was developed using MVC (Model View Controller) design pattern so that applications can be scaled better with greater maintainability. It is driven by Java Community Process (JCP) and has become a standard. The advantage of JSF is that it has both a Java Web user and interface and a framework that fits well with the MVC. It provides clean separation between presentation and behavior. UI (User Interface) can be created by page author using reusable UI components and business logic part can be implemented using managed beans.
JSF much more plumbing that JSP developers have to implement by hand, such as page navigation and validation. One can think of JSP and servlets as the assembly languages under the hood of the high-level JSF framework.
In an application add the JSF libraries. Further in the .jsp page one has to add the tag library like:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
Most helpful rated by users: