Thanks for all your replies.

Yes, binding attribute will surely work and it does in my case as well.
But I am still not able to understand why is findComponent not able to
find the component.

If browsed through the children of the UIViewRoot instance that gets
created. Surprisingly the component which i am trying to find is present
there with the same ID.

I went through the myfaces code as well but could not find a reason of
it not working.

> -----Original Message-----
> From: Simon Kitching [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 13, 2006 12:53 AM
> To: MyFaces Discussion
> Subject: Re: When is rendered attribute checked?
>
> 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

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Reply via email to