Currently I am adding new components to the tree on an action. These new components have binding attribute set. But when they are rendered first time the backing bean that is associated with these new components does not get intialized with  the component references.
 
For all subsequent requests they are available in the backing bean.
 
After debugging, I found that in LifeCycleImpl during restore view phase
recursivelyHandleComponentReferencesAndSetValid is called. this evaluates the binding _expression_ for all the components in tree and thus they are available in the backing bean associated with the components.
 
If I have to make sure that the dynamically added components are available in backing bean, I can call the static method recursivelyHandleComponentReferencesAndSetValid on LifeCycleImpl.
 
I would appreciate others thoughts on this scenario? How is it handled if you have had the same scenario?

Reply via email to