Tolal:9 Click:
1
JSF Interview Questions And Answers
Page 1
Ques: 1 How many step the JSF life-cycle are completed?
Ans:
There are six phases of the JSF application lifecycle
1. Restore view
2. Apply request values; process events
3. Process validations; process events
4. Update model values; process events
5. Invoke application; process events
6. Render response
Ques: 2 How URL String help to pass a parameter in the JSF application?
Ans:
if suppose that we have any URL: http://r4r.co.in/java/project.jsf?id=777, we are tring to access the passing parameter id with the following lines of java code.
FacesContext fct = FacesContext.getCurrentInstance();
String id = (String) fct.getExternalContext().getRequestParameterMap().get("id");
Ques: 3 What are advantage of the JSF?
Ans:
1. JSF also supports internationalization and accessibility
2. Render kit support for different clients
3. Component-level control over statefulness
4. Robust event handling mechanism.
5. Highly 'pluggable' - components, view handler, etc
6. Events easily tied to server-side code and many more.
Ques: 4 How many part JSF is devided?
Ans:
1. A set of prefabricated UI components.
An event-driven programming model.
A component model that enables third-party developers to supply additional components or plug-in.
Ques: 5 How many services are provided by JSF?
Ans:
1. Data Conversion
2. Validation
3. Error Handling
4. Model-View-Controller Architecture
5. Custom Components
6. Internationalization
7. Alternative Renderers
Ques: 6 What is use of the <f:attribute> Tag in JSF?
Ans:
JSF <f:attribute> Tag is use to add an attribute to the UIComponent associated with the enclosing parent tag
Ques: 7 What is the use of the <f:convertDateTime> Tag in JSF?
Ans:
JSF <f:convertDateTime> Tag is register a DateTimeConverter instance on UIComponent associate with the enclosing parent tag. DateTimeConverter is Converter implementation for java.util.Date values use getAsObject() method parses a String into a java.util.Date.
Ques: 8 What is the use of the <f:convertNumber> Tag in JSF?
Ans:
JSF <f:convertNumber> Tag is register a NumberConverter instance on the UIComponent associate with the enclosing parent tag. NumberConverter is Converter implementation for java.lang.Number values use to getAsObject() method parses a String into an java.lang.Double or java.lang.Long.
Ques: 9 What is use of the <f:subview>Tag in the JSF?
Ans:
JSF <f:subview> Tag is help to dynamically includes another page from the same web application.
Goto Page:
1
JSF Objective
JSF Objective Questions And Answers
JSF Interview Questions And Answers
JSF Interview Questions And Answers
R4R,JSF Objective, JSF Subjective, JSF Interview Questions And Answers,JSF,JSF Interview,JSF Questions ,JSF Answers