Hi Mario,
if getRendersChildren() returns fals, the JSP-tag will call encodeChildren().
regards,
Martin
On 10/24/07, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
> Hi!
>
> In JSF 1.1 I am curious about the javax.faces.renderer.Renderer class in
> JSF 1.1, in particular the following piece of code:
>
> public void encodeChildren(FacesContext context,
> UIComponent component)
> throws IOException
> {
> if (context == null) throw new NullPointerException("context");
> if (component == null) throw new NullPointerException("component");
>
> List children = component.getChildren();
> for (int i=0; i<children.size(); i++)
> {
> UIComponent child = (UIComponent) children.get(i);
>
> if (!child.isRendered())
> {
> continue;
> }
>
> child.encodeBegin(context);
> if (child.getRendersChildren())
> {
> child.encodeChildren(context);
> }
> child.encodeEnd(context);
> }
> }
>
>
> I wonder WHEN are the children rendered if the component returns false
> on getRendersChildren here.
> And how/why does it work when mixing things, lets say you have
> t:div/h:panelGroup/t:div
> where t:div returns false on getRendersChildren() and h:panelGroup
> returns true.
>
> Is there a simple answer to this?
>
> Ciao,
> Mario
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces