Tree does not work any more with core 2.0
-----------------------------------------
Key: TOMAHAWK-1486
URL: https://issues.apache.org/jira/browse/TOMAHAWK-1486
Project: MyFaces Tomahawk
Issue Type: Bug
Components: Tree
Affects Versions: 1.1.10-SNAPSHOT
Reporter: Ingo Hofmann
A rendered <t:tree> tree can not be collapsed or opened any more (with core
2.0).
The nodes' command links seem to be rendered wrong.
Example from the examples module:
<h:form id="treeform">
<t:tree id="tree1" value="#{tree1Backer.treeModel}"
styleClass="tree"
nodeClass="treenode"
selectedNodeClass="treenodeSelected"
expandRoot="true">
</t:tree>
</h:form>
tree1Backer:
public class Tree1Backer {
private TreeModel treeModel;
public TreeModel getTreeModel() {
if (treeModel == null) {
DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
root.insert(a);
DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
root.insert(b);
DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
root.insert(c);
DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
a.insert(node);
node = new DefaultMutableTreeNode("a2 ");
a.insert(node);
node = new DefaultMutableTreeNode("b ");
b.insert(node);
a = node;
node = new DefaultMutableTreeNode("x1");
a.insert(node);
node = new DefaultMutableTreeNode("x2");
a.insert(node);
treeModel = new DefaultTreeModel(root);
}
return treeModel;
}
public void setTreeModel(TreeModel treeModel) {
this.treeModel = treeModel;
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.