Hi,
Thanks for your reply. I haven't found the solution. I saw the example code as following:
TreeNodeBase personNode = new TreeNodeBase("person", "Frank Foo", false);
personNode.getChildren().add(new TreeNodeBase("foo-folder", "Requires Foo", false));
personNode.getChildren().add(new TreeNodeBase("foo-folder", "Requires Foo", false));
Where is the attribute you mentioned? For tree table example, it have something like:
DefaultMutableTreeNode root = new DefaultMutableTreeNode(new TreeItem(1, "XY", "9001", "XY 9001"));
DefaultMutableTreeNode a = new DefaultMutableTreeNode(new TreeItem(2, "A", "9001", "A 9001"));
DefaultMutableTreeNode a = new DefaultMutableTreeNode(new TreeItem(2, "A", "9001", "A 9001"));
If you can give some sample code in how to get rid of connection line and change image icons, that will be very much appreciated.
Thanks,
Emily
On 12/29/05, Saumil Mehta <[EMAIL PROTECTED]> wrote:
Don't know if you already found a solution...
When you create the TreeNodeBase object representing a node in the tree, simply set the image URL argument to null. Also, the tree2 tag has a showLines attribute that you can set to false to make the connection line images disappear.
HTH
From: Emily Gu [mailto: [EMAIL PROTECTED]]
Sent: Wednesday, December 28, 2005 1:15 PM
To: users@myfaces.apache.org
Subject: Is there a way to change the icon of the tree table provided by MyFaces?
Hi,
I haven't see a way to change those yellow folder icons for tree table and get rid of those sub-tree item connection line. It is very much appreciated if you can point me in how to do it.
Thanks,
Emily