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 :)
Second Point
: still I don't understand (Phase 5). What mean "do the action"? Basically i've just done it, by getting the values from the request and put in the UI Context (if, for example, the action isSubmit
– Romanticism