JSF

JSF PROJECTS

JSF PROJECT 1

JSF Examples

JSF EXAMPLE

JSF Interview Questions And Answers
More interview questions and answers

What is value-binding expression ?

A JavaServer Faces EL expression that refers to a property of a backing bean. A component tag uses this expression to bind the associated component\'s value or the component instance to the bean property. If the component tag refers to the property via its value attribute, then the component\'s value is bound to the property. If the component tag refers to the property via its binding attribute then the component itself is bound to the property.

How many step the JSF life-cycle are completed?

There are six phases of the JSF application life-cycle 
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

How URL String help to pass a parameter in the JSF application?

if suppose that we have any URL: http://r4r.co.in/java/project.jsf?id=77, 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\");

What are advantage of the JSF?

Following are advantage of the JSF

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.

How many part JSF is devided?

We can divide jsf into

1. A set of prefabricated UI components.
2.An event-driven programming model.
3.A component model that enables third-party developers to supply additional components or plug-in.

How many services are provided by JSF?

JSF provides following services 

1. Data Conversion
2. Validation
3. Error Handling
4. Model-View-Controller Architecture
5. Custom Components
6. Internationalization  
7. Alternative Renders

What is use of the Tag in JSF?

JSF <f:attribute> Tag is use to add an attribute to the UIComponent associated with the enclosing  parent  tag

What is the use of the Tag in JSF?

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.

What is the use of the Tag in JSF?

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.

What is use of the Tag in the JSF?

JSF <f:subview> Tag is help to dynamically includes another page from the same web application.