writeImageElementWithoutEncodeResourceURL(resource.getRequestPath(), facesContext, writer, child);
}
}
else
{
HtmlTreeImageCommandLink expandCollapse = (HtmlTreeImageCommandLink) child
.getExpandCollapseCommand(facesContext);
String url1 = getLayoutImage(facesContext, tree, layout[layout.length - 1]);
if ((url1 != null) && (url1.length() > 0))
{
expandCollapse.setImage(url1);
}
else
{
String resourceName = getDefaultLayoutResourceName(facesContext, tree, layout[layout.length - 1]);
expandCollapse.getAttributes().put(JSFAttr.LIBRARY_ATTR, DEFAULT_IMAGE_LIBRARY);
expandCollapse.getAttributes().put(JSFAttr.NAME_ATTR, resourceName);
}
expandCollapse.encodeBegin(facesContext);
expandCollapse.encodeEnd(facesContext);
}
writer.endElement(HTML.TD_ELEM);
int labelColSpan = maxLevel - child.getLevel() + 1;