This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF LifeCycle Understanding problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF LifeCycle Understanding problem" Watch "JSF LifeCycle Understanding problem" New topic
Author

JSF LifeCycle Understanding problem

Sandip Chaudhuri
Greenhorn

Joined: Dec 27, 2004
Posts: 26
As per what i gather from JSF for nonbelievers for the lifecycle we have the 6 steps.

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

Where restore view we have new view, initial view, and postback.
The form on submission will finally reach the Invoke application where the method called will be executed after which the navigation will be handeled. After that we have the render response phase.

Now if the navigation is going to another jsf. Is the new view created by the render Response? and the bean for the view populated?
What it seems to me is that the navigated to jsp is rendered but the view is not created. The values which were present in the initial bean gets carried over to the page but since it is of request scope it finishes there. So what i get on the navigated to jsp is that i can see the values but the view has actually not been created or is an initial view. So if i use any immediate=true link/action then all i get are null fields. Is my understanding of the lifecycle correct? please help.
 
jQuery in Action, 2nd edition
 
subject: JSF LifeCycle Understanding problem
 
Similar Threads
Ajax and JSF
FacesContext rendering
Need to understand the Request Scope
JSF ValueChange problems and Default method where the form submits to
Newbie to JSF. Tryin to understand JSF Lifecycle