RenderingContext arc,
UIComponent child,
int renderedCount,
boolean isLastChild) throws IOException
{
TreeTableRenderingContext ttrc = TreeTableRenderingContext.getInstance();
UIXTreeTable tree = ttrc.getUIXTreeTable();
ResponseWriter out = context.getResponseWriter();
out.startElement("a", tree);
out.writeURIAttribute("href", "#" , null);
// put style classes on the links
if (isLastChild)
{
renderStyleClass(
context, arc,
SkinSelectors.AF_TREE_TABLE_MP_SELECTED_STYLE_CLASS);
}
else
{
renderStyleClass(
context, arc,
SkinSelectors.AF_TREE_TABLE_MP_STEP_STYLE_CLASS);
}
Object oldPath = tree.getRowKey();
Object focusRowKey = ttrc.getFocusRowKey();
List<Object> focusPath = tree.getAllAncestorContainerRowKeys(focusRowKey);
Object crumbPath = (renderedCount < focusPath.size())
? focusPath.get(renderedCount)
: focusRowKey;
try
{
tree.setRowKey(crumbPath);
String onclick =
TreeUtils.callJSFocusNode(tree, ttrc.getJSVarName());
out.writeAttribute("onclick", onclick , null);
super.renderLink(context, arc, child, renderedCount, isLastChild);
}
finally
{