I just had the same problem with the NullPointerException. I think it
is a facelet+myfaces issue. I had to add a "model" property to the
tree to stop the errors:
<t:tree
model="#{currentView.memberDialog.memberTree}"
value="#{currentView.memberDialog.memberTree}"
styleClass="availMembersTree"
expandRoot="false" />
On 12/22/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> All JSF components must support binding. (and id and rendered).
> If t:tree isn't supporting it, it's a bug. Have you tried it? If
> so, what error are you getting?
>
> On 12/21/05, Kenneth Gertsen <[EMAIL PROTECTED]> wrote:
> >
> >
> > I'm trying to use MyFaces 1.1.1 TreeTable.
> >
> > Is there any way to bind an instance of
> > org.apache.myfaces.custom.tree.HtmlTree to my backing bean?
> > The <t:tree> tag does not have a binding attribute?
> >
> >
> >
> >
> >
> >
> > In addition to the binding problem, the HtmlTree code is throwing a
> > NullPointerException in HtmlTree.addToModelListeners() whenever I try to
> > leave the page showing the tree or expand a node of the tree.
> >
> >
> >
> > Also, I'd like more control over what nodes are expanded initially and I
> > believe the best way to do that is to bind the tree to an instance of
> > HtmlTree in my backing bean.
> >
> >
> >
> > Any help would be greatly appreciated.
> >
> >
> >
> > Thanks,
> >
> > Ken Gertsen
>