ArticlesTutorialsInterview Questions & AnswersCertificationsFree Books & Sample ChaptersTechnical Discussions  Your Account | Advertise with us | Feedback |
Few pages of this site are under construction and we are constantly trying to improve it. If you have any suggestions or ideas about how to improve the site, please Let us know.
JavaServer Faces Interview Questions - 3

Previous | 1 2 3 |Next

22.  What are the JSF life-cycle phases?

The six phases of the JSF application lifecycle are as follows (note the event processing at each phase):


23. Explain briefly the life-cycle phases of JSF?

    1. 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.
    2. 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 FacesContext object, followed by their values.
    3. Process validations:   In this phase, each component will have its values validated against the application's validation rules.
    4. Update model values:   In this phase JSF updates the actual values of the server-side model ,by updating the properties of your backing beans.
    5. Invoke application:   In this phase the JSF controller invokes the application to handle Form submissions.
    6. Render response:   In this phase JSF displays the view with all of its components in their current state.


24. What does it mean by render kit in JSF?

A render kit defines how component classes map to component tags that are appropriate for a particular client. The JavaServer Faces implementation includes a standard HTML render kit for rendering to an HTML client.


25.  Is it possible to have more than one Faces Configuration file?

We can have any number of config files. Just need to register in web.xml.
Assume that we want to use faces-config(1,2,and 3),to register more than one faces configuration file in JSF,just declare in the web.xml file

    
    	<context-param>
    		<param-name>javax.faces.CONFIG_FILES</param-name>
    		<param-value>
    			/WEB-INF/faces-config1.xml,
    			/WEB-INF/faces-config2.xml,
    			/WEB-INF/faces-config3.xml 
    		</param-value>
    	</context-param>
    

More JSF FAQs on Custom components , MyFaces ,etc,. soooooooon...

Previous | 1 2 3 |Next
Test

  ALSO SEE :

About Us | Our Mission | Terms of use | Author Terms |    Search        | Contact Us | Advertise With Us | Link to Us | Sitemap
Copyright © 2016 developersBOOK.COM. All rights reserved.