Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF LifeCycle Understanding problem  RSS feed

Sandip Chaudhuri
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!