UIXHierarchy tree,
String name
) throws IOException
{
UINode stamp = getStamp(context, node);
if(stamp == null)
stamp = _DEFAULT_STAMP;
//@todo - will this tree.getFocusPath survive?
// List focusPath = getFocusPath(context, node);
Object focusPath = tree.getFocusRowKey();
String formName = getParentFormName(context);
if (formName == null)
{
_LOG.warning("The tree component must be used inside of a form.");
return;
}
// Bug 3931544: don't use colons in Javascript variable names.
// We'll just replace colons with underscores; not perfect, but adequate
final String varName = "_adftree" +
XhtmlUtils.getJSIdentifier(name);
boolean leftToRight = !context.getLocaleContext().isRightToLeft();
int rootSize = tree.getRowCount();
RowKeySet state = getExpandedRowKeys(tree);
Map<Object, Boolean> selectedPaths = getSelectedPaths(focusPath);
UINode icon = getIcon();
// render each of the root nodes
for (int i = 0; i < rootSize; i++)
{
tree.setRowIndex(i);