Showing posts with label JSF. Show all posts
Showing posts with label JSF. Show all posts

Saturday, 11 August 2012

Java Interview Questions: - How will you explain navigation rules and how to declare the same?

Navigation rules tells JSF implementation which page to send back to the browser after a form has been submitted
The above configuration says that navigation will happen to page2.jsp if the action eventAction happens inside page1.jsp

See the following video on Getting Started with Servlet in Java: -



Click to get Java Interview Questions

Regards,

Get more Java Interview Questions from author’s blog

Tuesday, 6 March 2012

Java Interview Questions: – Elaborate configuration of JSF application in web.xml?

URL containing faces is mapped to FacesServlet which will perform the required task when invoked.

Following are the important entries










Additional entities are made as context param



See the following video on Inheritance between beans and Spring: -



Click for more Java interview questions

Regards,

Visit for more author’s blog on Java interview questions

Saturday, 18 February 2012

Java Interview Questions: - Mention the life-cycle phases of JSF (Java Server Faces)?

Following is the brief Life-cycle phases of JSF (Java Server Faces) asked during Java interview questions.

Restore View : A request comes through the FacesServlet controller. The controller examines the request and extracts the view ID, which is determined by the name of the JSP page.

Apply request values: The purpose of the apply request values phase is for each component to retrieve its current state. The components must first be retrieved or created from the Faces Context object, followed by their values.

Process validations: In this phase, each component will have its values validated against the application's validation rules.

Update model values: In this phase JSF updates the actual values of the server-side model, by updating the properties of your backing beans.

Invoke application: In this phase the JSF controller invokes the application to handle Form submissions.
Render response: In this phase JSF displays the view with all of its components in their current state.

See the following video by using String or String Buffer performance increases asked during java Interview: -



Click for more Java interview questions

Regards,

Visit for more author’s blog on Java interview questions