I've created a HtmlTree in Java code:
 
HtmlTree tree = (HtmlTree) application.createComponent(HtmlTree.COMPONENT_TYPE);
        tree.setRendererType("org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRenderer");
        tree.setId("tree");
        tree.setVar("treeItem");
        tree.setStyleClass("tree");
        tree.setNodeClass("treenode");
        tree.setRowClasses("a, b");
        tree.setColumnClasses("col1, col12");
        tree.setSelectedNodeClass("treenodeSelected");
 
How do I apply the DefaultTreeModel that I am returning from a getter?
 
public DefaultTreeModel getTreeModel() {
        return treeModel;
}
 
I know that the getter does return a valid DefaultTreeModel object.
 
How does DefaultTreeModel and HtmlTree relate?
 
Thanks,
 
--Todd

Reply via email to