webtier@glassfish.java.net

Doubts about JSF 2.0 lifecycle

From: <webtier_at_javadesktop.org>
Date: Mon, 10 May 2010 20:33:58 PDT

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?
[Message sent by forum member 'nash_era']

http://forums.java.net/jive/thread.jspa?messageID=469310