} else {
sb.append("<div id=\"o_c").append(source.getDispatchID()).append("\">");
}
}
ComponentRenderer cr = findComponentRenderer(source);
URLBuilder cubu = urlBuilder.createCopyFor(source);
// OLAT-1973
if (GUIInterna.isLoadPerformanceMode()) {
StringBuilder pathsb = new StringBuilder();
Component cc = source;
Container ccpar = cc.getParent();
while (ccpar != null) { // omit content pane
// find out name under which cc was registered in its parent - that is the relevant name, not the name of the component itself
Map namedChildren = ccpar.getComponents();
for (Iterator it_chd = namedChildren.keySet().iterator(); it_chd.hasNext();) {
String chdName = (String) it_chd.next();
Component chd = ccpar.getComponent(chdName);
if (chd == cc) {
// found -> append name
pathsb.append(chdName).append('!');
break;
}
}
cc = ccpar;
ccpar = cc.getParent();
}
cubu.setComponentPath(pathsb.toString());
}
renderResult.incNestedLevel();
// ---- for gui debug mode, direct the rendering to a special componentrenderer
InterceptHandlerInstance dhi = renderResult.getInterceptHandlerInstance();
if (dhi != null) {
cr = dhi.createInterceptComponentRenderer(cr);
}
try {
int preRenderLength = sb.length();
cr.render(this, sb, source, cubu, componentTranslator, renderResult, args);
if (preRenderLength == sb.length()) {
// Add bugfix for IE min-height on empty div problem: min-height does
// not get applied when div contains an empty comment.
// Affects IE6, IE7
sb.append("<!-- empty -->");