You should use tree2 - mentioned before -
or look at Oracle's ADF donation.
well, a debugger might help you in figuring out what's wrong.
-Matthias
On 6/8/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
If I add the line:
tree.addToModelListeners();
To the following:
HtmlTree tree = (HtmlTree)
application.createComponent("org.apache.myfaces.HtmlTree");
tree.setRendererType("org.apache.myfaces.HtmlTree");
tree.setId("tree");
ValueBinding vb =
application.createValueBinding("#{tbrowser.treeModel}");
tree.setValueBinding("value", vb);
tree.setVar("treeItem");
tree.setStyleClass("tree");
tree.setNodeClass("treenode");
tree.setRowClasses("a, b");
tree.setColumnClasses("col1, col12");
tree.setSelectedNodeClass("treenodeSelected");
tree.addToModelListeners();
panel.getChildren().add(tree);
I still get the same NullPointerException error when I don't have the call
to addToModeListeners.
This is frustrating beyond belief... it's so unproductive, it's not funny
anymore.
"I've lost the entire week with baby steps all due to the lack of proper
tutorials and documentation on Tomahawk."
--Todd
________________________________
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 9:33 AM
To: MyFaces Discussion
Subject: What is the purpose of the HtmlTree method addToModelListeners?
There is no documentation at
http://myfaces.apache.org/tomahawk/apidocs/index.html for
HtmlTree method addToModelListeners.
Right now I am receiving the following error:
Caused by: java.lang.NullPointerException
at
org.apache.myfaces.custom.tree.HtmlTree.addToModelListeners(HtmlTree.java:806)
Thanks,
--Todd
--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com