Re: JSF Life Cycle theory - navigating to the new page and building component trees?
Posted By:
Anonymous
Posted On:
Tuesday, September 15, 2009 11:16 AM
Hello.
This is really a good question. Actually all this happen in Invoke application phase. For the same example what you mention till pahse 4 and begining of phase 5 will have component tree of page 1. Inside the phase5, The NavigationHandler matches the outcome to the proper navigation rule defined in the applications application configuration resource file to determine which page needs to be displayed next.The JavaServer Faces implementation then sets the response view to that of the new page i.e. page 2.At this moment this view will be empty(just jsp name) and it will be populated with the components in RenderResponse phase of life cycle.
Hope this answer your doubt.