Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3456380
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:43:45+00:00 2026-05-18T09:43:45+00:00

Today I’d like to know some features on the JSF Lifecycle. Let me start

  • 0

Today I’d like to know some features on the JSF Lifecycle. Let me start :

1 – Phase 2:Apply request Values – During this phase,each component in the view will search for its values in the request and set the new values to them

Uhm, ok nice. So, the View will be built due to the previous Beans parameters. After, there is a partial View, generated with the request values. (Right? Later, in the 3° phase, they will be compared) . But, for example, if a values in the request list is absent during the creation of this last view? Values will be null?

2 – Phase 5: Invoke Application – Once all the values of the request has been successfully set to the backing bean the action events queued during the apply request values phase will be processed. In our case the submit buttons action method .

This is not clear at all. At this moment i have (on the beans) the values updated from the previous Phase (If the validation and the apply request aren’t failed). Ok, so now what happens? What means the action events queued during the apply request values phase will be processed? It means that, for example, if the action is Submit the process is finished? That’s why an ajax call, if not rendered in the 2° phase, will fail? Or where it fails?

3 – Phase 6: Render response – In this phase the component tree will be rendered to the client.

It means that the View on the server is updated by using the updated bean values? And, after this, the HTML code is created from this View? Or just it made the HTML code and save the View status?

Hope you can help me 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:43:46+00:00Added an answer on May 18, 2026 at 9:43 am

    Phase 2:Apply request Values – During this phase,each component in the view will search for its values in the request and set the new values to them

    Uhm, ok nice. So, the View will be built due to the previous Beans parameters. After, there is a partial View, generated with the request values. (Right? Later, in the 3° phase, they will be compared) . But, for example, if a values in the request list is absent during the creation of this last view? Values will be null?

    Basically the following is happening under the covers (here, input is UIInput and request is HttpServletRequest):

    if (input.isRendered()) {
        String value = request.getParameter(input.getClientId());
        if (value != null) {
            input.setSubmittedValue(value);
        }
    }
    

    So, they will be untouched if there’s no request parameter. They won’t be set with null and just kept default.


    Phase 5: Invoke Application – Once all the values of the request has been successfully set to the backing bean the action events queued during the apply request values phase will be processed. In our case the submit buttons action method .

    This is not clear at all. At this moment i have (on the beans) the values updated from the previous Phase (If the validation and the apply request aren’t failed). Ok, so now what happens? What means the action events queued during the apply request values phase will be processed? It means that, for example, if the action is Submit the process is finished? That’s why an ajax call, if not rendered in the 2° phase, will fail? Or where it fails?

    During 2nd phase basically the following will also happen (here, command is UICommand, request is HttpServletRequest and ActionEvent is ActionEvent):

    if (command.isRendered()) {
        String value = request.getParameter(command.getClientId());
        if (value != null) {
            command.queueEvent(new ActionEvent(command)); // Queue for INVOKE_ACTION.
        }
    }
    

    Then, during invoke application phase, all events which are queued for the particular phase will be invoked.


    Phase 6: Render response – In this phase the component tree will be rendered to the client.

    It means that the View on the server is updated by using the updated bean values? And, after this, the HTML code is created from this View? Or just it made the HTML code and save the View status?

    During this phase JSF walks through the component tree and all components will be encoded (will invoke the Renderer of all components, by default a HTML renderer). During encoding, the values will just be obtained from the model. The view itself won’t be updated. Basically:

    facesContext.getViewRoot().encodeAll();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today i have a little problem containing a File Upload. First some Infos: Rubyversion:
Today, I was reading about structures in Let Us C (on Goodreads ). I
Today we have received some strange exceptions on our production website. They all have
Today I made some tests and I am curious of the results. I made
Today I am trying to remove some bytes from an EXE file. Inside the
Today start using the new version of Netbeans 7.1.2, I get the below notice
Today I wanted to write a simple php script, but I got some annoying
Today I was reading code from some very popular numerical libraries written in FORTRAN
Today I met some unexpected behavior on doctrine (1.2). Situation I've a Document class,
Today at work we came across the following code (some of you might recognize

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.