Just wrap them both inside a <h:panelGroup /> and it will get rid of
the warning.


On Thu, 27 Jan 2005 19:57:52 +0100, Alessandro Polverini
<[EMAIL PROTECTED]> wrote:
> Hello,
> if I use a construct like that:
> 
> <h:outputLabel for="cb1" value="Test"/>
> <h:selectBooleanCheckbox id="cb1"/>
> 
> I get a warning from myfaces :
> org.apache.myfaces.renderkit.html.HtmlLabelRenderer encodeBegin
> WARNING: Unable to find component 'cb1' (calling findComponent on
> component 'form:_id5')
> 
> The warning goes away if I reverse the order of the two lines, so I
> suppose the problem is that the label looks for the selectBox before it
> is added to the tree.
> Maybe the right way is to define labels after other components, but this
> would be a bit restrictive, anyway, if this is the case, I think all the
> examples should be changed since they define labels first.
> 
> Otherwise, is this an error to report tu jira?
> 
> I'm using myfaces 1.0.8.
> 
> Thanks,
> Alex
> 
> 


-- 
-Heath Borders-Wing
[EMAIL PROTECTED]

Reply via email to