@Override protected String getContainerStyleClass(TreeContextImpl node) { if (node.getDepth() == 1) { return "nav nav-pills"; } return super.getContainerStyleClass(node); }
@Override protected void renderChildren(FacesContext context, ResponseWriter writer, TreeContextImpl tree) throws IOException { int depth = tree.getDepth(); if (depth == 1) { super.renderChildren(context, writer, tree); } else { if (tree.getNode().getType() != ITreeNode.NODE_LEAF) { String prefix = (String) getProperty(PROP_MENUPREFIX); OneUIv302DojoMenuRenderer r = new OneUIv302DojoMenuRenderer(); String clientId = tree.getClientId(context, prefix, 1); // $NON-NLS-1$ String mid = clientId + "_mn"; // $NON-NLS-1$ r.setMenuId(mid); if (StringUtil.isNotEmpty(clientId)) { r.setConnectId(clientId); } r.setConnectEvent("onclick"); // $NON-NLS-1$ r.render(context, writer, tree); } } }