I have no objection to add a binding attribute.  That could be very
useful in handling of the situations not already covered by the tree. 
You could write an action listener and give it a reference to the tree
so you can check the current node id, etc.

Here is a link that might help with CVS patches:

http://cocoon.apache.org/2.1/howto/howto-patch.html

Let me know if you have trouble with it.  There are nightly builds
available too so you don't have to use CVS.  Consider using the CVS
source though (at least for helping with patches) because that is what
all of the power users are using.  If you still have trouble just send
me the modified files (use the most recent nightly) and I can take
care of it.

sean



On Mar 31, 2005 4:32 PM, Jon Travis <[EMAIL PROTECTED]> wrote:
> 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
> >>
> >
> >
> 
>

Reply via email to