[prev in list] [next in list] [prev in thread] [next in thread] 

List:       myfaces-user
Subject:    Re: Annoying INFO Message: Unable to find component
From:       "Craig McClanahan" <craigmcc () apache ! org>
Date:       2006-02-28 8:23:17
Message-ID: f8b39ace0602280023m710e6d8dl10e4e972bc942e98 () mail ! gmail ! com
[Download RAW message or body]

On 2/28/06, Martin Marinschek <martin.marinschek@gmail.com> wrote:
>
> That's due to the interaction of JSP and JSF.
>
> On the first pass (=first access of a page, on subsequent ones this is
> not a problem), the component-tree get's created while going through
> the JSP-page. Now if a component doesn't render it's children, the
> first children (=your label) doesn't know that the next children
> (=your input) will be created.


BTW, this is one of the many things that works *much* better in a JSF 1.2world.

Craig

regards,
>
> Martin
>
> On 2/28/06, Mike Duffy <mduffy_lists@yahoo.com> wrote:
> > I've Googled on this for about two hours, hoping to find a solution.
> >
> > It seems that this is a very old issue that once started out as an
> error, but was changed to an
> > info message.
> >
> > Martin Marinschek closed MYFACES-261:
> > http://www.archivum.info/dev@myfaces.apache.org/2005-06/msg00047.html
> >
> > Basic question:  If the component id is clearly referenced in the
> <h:outputLabel
> > for="componentID"..., why can't the component be found?  This seems like
> it is a bug.
> >
> > Mike
> >
> >
> >
> > --- Volker Weber <users.myfaces@weber-oldenburg.de> wrote:
> >
> > > Hi Mike,
> > >
> > > Mike Duffy wrote:
> > > > I am seeing an annoying INFO message for every JSP that contains a
> JSF component:
> > > >
> > > > INFO  [RendererUtils] Unable to find component 'projectTypeValue'
> (calling findComponent on
> > > > component 'selectProjectTypeIssueType:_idJsp74'). We'll try to
> return a guessed client-id
> > > anyways
> > > > - this will be a problem if you put the referenced component into a
> different
> > > naming-container. If
> > > > this is the case, you can always use the full client-id.
> > > >
> > > > The component name seems to be based on the backing bean parameter,
> not the id.
> > > >
> > > > I've tried using variations of the "full client-id", using
> formname:componentParameter, etc.
> > > > Nothing seems to work.
> > >
> > > not sure, but try an 'absolute' clientId starting with a colon
> > > e.g. ":formname:componentParameter"
> > >
> > > Regards,
> > >   Volker
> > >
> > > >
> > > > Any suggestions?
> > > >
> > > > Also, can someone please send an example of exactly what a "full
> client-id" is?  Does the
> > > > component id need to be related to the component paramaeter value?
> > > >
> > > > Thx.
> > > >
> > > > Mike
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > > http://mail.yahoo.com
> > > >
> > >
> > > --
> > > Don't answer to From: address!
> > > Mail to this account are droped if not recieved via mailinglist.
> > > To contact me direct create the mail address by
> > > concatenating my forename to my senders domain.
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>

[Attachment #3 (text/html)]

<br><br><div><span class="gmail_quote">On 2/28/06, <b class="gmail_sendername">Martin \
Marinschek</b> &lt;<a \
href="mailto:martin.marinschek@gmail.com">martin.marinschek@gmail.com</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> That's due to the \
interaction of JSP and JSF.<br><br>On the first pass (=first access of a page, on \
subsequent ones this is<br>not a problem), the component-tree get's created while \
going through<br>the JSP-page. Now if a component doesn't render it's children, the \
<br>first children (=your label) doesn't know that the next children<br>(=your input) \
will be created.</blockquote><div><br>BTW, this is one of the many things that works \
*much* better in a JSF 1.2 world. <br><br>Craig<br> </div><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">regards,<br><br>Martin<br><br>On 2/28/06, Mike Duffy \
&lt;<a href="mailto:mduffy_lists@yahoo.com"> mduffy_lists@yahoo.com</a>&gt; \
wrote:<br>&gt; I've Googled on this for about two hours, hoping to find a \
solution.<br>&gt;<br>&gt; It seems that this is a very old issue that once started \
out as an error, but was changed to an <br>&gt; info message.<br>&gt;<br>&gt; Martin \
Marinschek closed MYFACES-261:<br>&gt; <a \
href="http://www.archivum.info/dev@myfaces.apache.org/2005-06/msg00047.html">http://www.archivum.info/dev@myfaces.apache.org/2005-06/msg00047.html
 </a><br>&gt;<br>&gt; Basic question:&nbsp;&nbsp;If the component id is clearly \
referenced in the &lt;h:outputLabel<br>&gt; for=&quot;componentID&quot;..., why can't \
the component be found?&nbsp;&nbsp;This seems like it is a bug.<br>&gt;<br>&gt; Mike \
<br>&gt;<br>&gt;<br>&gt;<br>&gt; --- Volker Weber &lt;<a \
href="mailto:users.myfaces@weber-oldenburg.de">users.myfaces@weber-oldenburg.de</a>&gt; \
wrote:<br>&gt;<br>&gt; &gt; Hi Mike,<br>&gt; &gt;<br>&gt; &gt; Mike Duffy wrote: \
<br>&gt; &gt; &gt; I am seeing an annoying INFO message for every JSP that contains a \
JSF component:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; INFO&nbsp;&nbsp;[RendererUtils] \
Unable to find component 'projectTypeValue' (calling findComponent on <br>&gt; &gt; \
&gt; component 'selectProjectTypeIssueType:_idJsp74'). We'll try to return a guessed \
client-id<br>&gt; &gt; anyways<br>&gt; &gt; &gt; - this will be a problem if you put \
the referenced component into a different <br>&gt; &gt; naming-container. If<br>&gt; \
&gt; &gt; this is the case, you can always use the full client-id.<br>&gt; &gt; \
&gt;<br>&gt; &gt; &gt; The component name seems to be based on the backing bean \
parameter, not the id. <br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I've tried using \
variations of the &quot;full client-id&quot;, using formname:componentParameter, \
etc.<br>&gt; &gt; &gt; Nothing seems to work.<br>&gt; &gt;<br>&gt; &gt; not sure, but \
try an 'absolute' clientId starting with a colon <br>&gt; &gt; e.g. \
&quot;:formname:componentParameter&quot;<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; \
&gt;&nbsp;&nbsp; Volker<br>&gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Any \
suggestions?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Also, can someone please send an \
example of exactly what a &quot;full client-id&quot; is?&nbsp;&nbsp;Does the <br>&gt; \
&gt; &gt; component id need to be related to the component paramaeter value?<br>&gt; \
&gt; &gt;<br>&gt; &gt; &gt; Thx.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Mike<br>&gt; \
&gt; &gt;<br>&gt; &gt; &gt; __________________________________________________ \
<br>&gt; &gt; &gt; Do You Yahoo!?<br>&gt; &gt; &gt; Tired of spam?&nbsp;&nbsp;Yahoo! \
Mail has the best spam protection around<br>&gt; &gt; &gt; <a \
href="http://mail.yahoo.com">http://mail.yahoo.com</a><br>&gt; &gt; &gt;<br>&gt; &gt; \
<br>&gt; &gt; --<br>&gt; &gt; Don't answer to From: address!<br>&gt; &gt; Mail to \
this account are droped if not recieved via mailinglist.<br>&gt; &gt; To contact me \
direct create the mail address by<br>&gt; &gt; concatenating my forename to my \
senders domain. <br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; \
__________________________________________________<br>&gt; Do You Yahoo!?<br>&gt; \
Tired of spam?&nbsp;&nbsp;Yahoo! Mail has the best spam protection around<br>&gt; <a \
href="http://mail.yahoo.com"> \
http://mail.yahoo.com</a><br>&gt;<br><br><br>--<br><br><a \
href="http://www.irian.at">http://www.irian.at</a><br><br>Your JSF powerhouse \
-<br>JSF Consulting, Development and<br>Courses in English and \
German<br><br>Professional Support for Apache MyFaces <br></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic