It would also be nice if tree2 supported the 'binding'
attribute like a lot of other components. I would
contribute patches, but I haven't been running out of
CVS.
-- Jon
On Mar 31, 2005, at 6:04 AM, Sean Schofield wrote:
Jon,
When you say getNodeId returns false, do you mean the string value
"false"? That method returns a String so I'm a bit confused. How do
you know the id is "false"? Are you doing a debug statement?
Please clarify so I can try and help you. Also, what is the exact
line where the NPE occurs? Is it the return statement in
isNodeExpanded? If so (and if you have a debugger) it would be
helpful to know which value is null.
Regards,
sean
ps. I forwarded this to the myfaces list in case anyone else has the
same problem. These messages are also archived so if someone has the
same question in the future they can get information by doing a quick
search.
On Thu, 31 Mar 2005 08:55:00 -0500, Sean Schofield
<[EMAIL PROTECTED]> wrote:
---------- Forwarded message ----------
From: Jon Travis <[EMAIL PROTECTED]>
Date: Wed, 30 Mar 2005 17:32:19 -0800
Subject: getNodeId() returning null in tree2
To: Sean Schofield <[EMAIL PROTECTED]>
Hey Sean,
Hope this isn't a braindead question, but:
I'm getting a NPE in the tree2 code when there is
no node that is selected & I am expanding/collapsing.
Basically it comes about when HtmlTree.isNodeSelected
is run -- getNodeId() returns false, then kaboom.
Thoughts?
-- Jon