Let's first check out the steps an application goes through when deployed on a server:
==============================================================
When the application is built and deployed on server, the application is in an uninitiated state.
When a client makes an initial request a web page, the application's Facelets application is compiled.
The compiled Facelets application is executed, and a new component tree is constructed for the the application and placed in a FacesContext.
The component tree is populated with the component and the managed bean property associated with it.
A new view is built, based on the component tree.
In the rendering phase, the view is rendered to the requesting client as a response.
The component tree is destroyed automatically.
On subsequent (postback) requests, the component tree is rebuilt, and the saved state is applied.
So it's quite evident as during postback requests, the component tree is rebuilt, JSF changes will get picked up. But if new variables are added and bound to some JSF component, it will not reflect as the association happens just once in the deployment cycle.
==============================================================
When the application is built and deployed on server, the application is in an uninitiated state.
When a client makes an initial request a web page, the application's Facelets application is compiled.
The compiled Facelets application is executed, and a new component tree is constructed for the the application and placed in a FacesContext.
The component tree is populated with the component and the managed bean property associated with it.
A new view is built, based on the component tree.
In the rendering phase, the view is rendered to the requesting client as a response.
The component tree is destroyed automatically.
On subsequent (postback) requests, the component tree is rebuilt, and the saved state is applied.
So it's quite evident as during postback requests, the component tree is rebuilt, JSF changes will get picked up. But if new variables are added and bound to some JSF component, it will not reflect as the association happens just once in the deployment cycle.
No comments:
Post a Comment