Mike Kienenberger wrote:
On 12/12/06, *Madhav Bhargava* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
1. Is the entire tree created before rendered property is checked?
This question is only relevent during render-response. For any other
phase, the tree should exist.
For JSF 1.2 or when using Facelets, the entire tree should be built
first. For JSF 1.1 without facelets, the tree is built as the tags are
processed. This is why you sometimes need to enclose a label and a
label "for" target in a panelgroup in order to force both components to
exist and code execution time -- I believe the panelGroup forces the
creation of its children before rendering them. You might be able to
use the same trick here.
1. Is a component added to the UIViewRoot only if rendered ="true"
As Simon said, a component is always added. The rendered flag indicates
whether the phases are executed for the component.
And just to address your original issue, I don't know why you are
getting null from your findComponent call, but I suggest you try using
the binding attribute in your JSP rather than findComponent. See the TLD
docs (or any JSF book) for the use of the binding attribute.
Regards,
Simon