200_JSF_Interview_Questions_Answers_Guide
200_JSF_Interview_Questions_Answers_Guide
Answers
If you find any question or answer is incorrect or incomplete then you can submit your question or
answer directly with out any registration or login at our website. You just need to visit JSF Interview
Questions And Answers to add your answer click on the Submit Your Answer links on the website;
with each question to post your answer, if you want to ask any question then you will have a link
Submit Your Question; that's will add your question in JSF category. To ensure quality, each
submission is checked by our team, before it becomes live. This JSF Interview preparation PDF was
generated at Wednesday 29th November, 2023
You can follow us on FaceBook for latest Jobs, Updates and other interviews material.
www.facebook.com/InterviewQuestionsAnswers.Org
If you need any further assistance or have queries regarding this document or its material or any of
other inquiry, please do not hesitate to contact us.
Best Of Luck.
Question - 1:
What is Render Kit in JSF?
ue
Ans:
Component classes generally transfer the task of generating output to the renderer. All JSF components follow it. Render kit is a set of related renderers.
javax.faces.render.RenderKit is the class which represents the render kit. The default render kit contains renderers for html but it's up to you to make it for other
st
markup languages. Render kit can implement a skin (a look & feel). Render kit can target a specific device like phone, PC or markup language like HTML, WML,
SVG. This is one of the best benefit of JSF because JSF doesn't limit to any device or markup.
View All Answers
io
Question - 2:
What is JSF life cycle and its phases?
ns
Ans:
he series of steps followed by an application is called its life cycle. A JSF application typically follows six steps in its life.
1. Restore view phase
2. Apply request values phase
A
Question - 3:
What are tags in JSF?
er
Ans:
JSF application typically uses JSP pages to represent views. JSF provides useful special tags to enhance these views. Each tag gives rise to an associated component.
JSF (Sun Implementation) provides 43 tags in two standard JSF tag libraries: 1. JSF Core Tags Library 2. JSF Html Tags Library Even a very simple page uses tags
s.
from both libraries. These tags can be used adding the following lines of code at the head of the page. <%@ taglib uri="http://java.sun.com/jsf/core " prefix="f" %>
(For Core Tags) <%@ taglib uri="http://java.sun.com/jsf/html " prefix="h" %> (For Html Tags)
View All Answers
O
Question - 4:
R
JSP simply provides a Page which may contain markup, embedded Java code, and tags which encapsulate more complicated logic / html. JSF may use JSP as its
template, but provides much more. This includes validation, rich component model and lifecycle, more sophisticated EL, separation of data, navigation handling,
different view technologies (instead of JSP), ability to provide more advanced features such as AJAX, etc.
View All Answers
Question - 5:
What is JavaServer Faces validation model?
Ans:
A mechanism for validating the data a user inputs to a JavaServer Faces UI component.
View All Answers
Question - 6:
What is JavaServer Faces UI component?
Ans:
A user interface control that outputs data to a client or allows a user to input data to a JavaServer Faces application.
View All Answers
Question - 7:
In
A framework for building server-side user interfaces for Web applications written in the Java programming language.
View All Answers
rv
Question - 8:
What is JavaServer Faces navigation model?
ie
Ans:
A mechanism for defining the sequence in which pages in a JavaServer Faces application are displayed.
w
Question - 9:
Q
A simple expression language used by a JavaServer Faces UI component tag attributes to bind the associated component to a bean property or to bind the associated
component's value to a method or an external data source, such as a bean property. Unlike JSP EL expressions, JavaServer Faces EL expressions are evaluated by the
JavaServer Faces implementation rather than by the Web container.
View All Answers
st
Question - 10:
io
Question - 11:
What is JavaServer Faces conversion model?
A
Ans:
ns
A mechanism for converting between string-based markup generated by JavaServer Faces UI components and server-side Java objects.
View All Answers
Question - 12:
w
A mechanism for determining how events emitted by JavaServer Faces UI components are handled. This model is based on the JavaBeans component event and
listener model.
s.
Question - 13:
O
JavaServer Faces(JSF) is a framework for building web-based user interface in Java. Unlike Swing, JSF provides widgets like buttons, hyperlinks, checkboxes, etc. in
different ways. It has extensible facilities for validating inputs and converting objects to and from strings for display.
G
JSF is the Java answer to Microsoft ASP.NET's Web Forms. ASP.Net is roughly equivalent to the Servlet and JSP
View All Answers
Follow us on FaceBook
www.facebook.com/InterviewQuestionsAnswers.Org
Follow us on Twitter
https://twitter.com/InterviewQA