Skip to main content

Doubts about JSF 2.0 lifecycle

1 reply [Last post]
nash_era
Offline
Joined: 2010-05-10
Points: 0

1)Is FacesContext stored in request scope at the beginning of the lifecycle?

2)Is the component tree populated with components mainly in render response phase? when a page is requested for the first time, the restore view phase creates a empty UIViewRoot and in the render response phase the tree is populated with components. Also in the render response phase, the navigation handler determines whether to display current view or a completely new view. If a new view is to be displayed, the component tree is populated with components in the render response phase. So component tree seems to be populated mainly in render response phase, isn't it so?

3)The render response state caches the 'current' state of the component tree in the render response phase. What exactly does 'current' mean? If we have a tree having input components with some user entered values, are the values also stored or they are removed before the tree is cached?

4)In what scope does render response cache the component tree?

5)Once a user request a page, a component tree is cached. Is the created tree available for all users or for a particular user for whom the tree was initially created?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nash_era
Offline
Joined: 2010-05-10
Points: 0

Hi
To keep it DRY, my question has been answered here:
http://forums.sun.com/thread.jspa?threadID=5438563

I won't mind if anybody wants to add anything more :)