I have encountered the same problem with HtmlTree.addToModelListeners.
 
Basically I am trying to display the contents of an XML Document using the original HtmlTree.  but for some reason, the tree won't refresh when a new XML Document is available.  So I thought I could get it to work by removing the old tree entirely from the panel, and then insert a new one.  Then I got a nullPointerException when HtmlTree.addToModelListeners is invoked... yet the document doesn't give anything on what this method is doing.
 
Please help. Thanks.
 
--Jim

 
On 6/8/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
svn

On 6/8/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> Can you download the ADF component jars only?
>
> Install them with their dependencies and get to work?
>
> At this point, the ADF components are only available through SVN.
>
> Thanks,
>
> --Todd
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of
> Matthias Wessendorf
> Sent: Thursday, June 08, 2006 11:27 AM
> To: MyFaces Discussion
> Subject: Re: What is the purpose of the HtmlTree method
> addToModelListeners?
>
> That's exactly what I was saying.
> It is also used in projects.
>
> -Matthias
>
> On 6/8/06, Cosma Colanicchia <[EMAIL PROTECTED]> wrote:
> > I found that ADF Faces is very stable. It comes from a well tested
> code base..
> >
> > Cosma
> >
> >
> >
> > 2006/6/8, Matthias Wessendorf <[EMAIL PROTECTED]>:
> > > but you can start to provide that option to tree2.
> > > this is open source :-)
> > >
> > > @ADF:
> > >  well it is not in incubator because it is buggy and not stable or
> > > things like that.
> > >  there are some other issues to solve in a "open community"
> > >   IP iusses, interest form users, committer (aka community)
> > >   those things are same interest in Apache. It is not only an opend
> source code.
> > >
> > > On 6/8/06, Todd Patrick < [EMAIL PROTECTED]> wrote:
> > > > tree2 doesn't support multiple columns, that's why I can't use it.
> > > >
> > > > Oracle's ADF donation is only in incubation and not a solid option
>
> > > > at this point.
> > > >
> > > > Thanks,
> > > >
> > > > --Todd
> > > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
> > > > Behalf Of Matthias Wessendorf
> > > > Sent: Thursday, June 08, 2006 10:05 AM
> > > > To: MyFaces Discussion
> > > > Subject: Re: What is the purpose of the HtmlTree method
> > > > addToModelListeners?
> > > >
> > > > 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(Html
> > > > > Tree.j
> > > > > ava:806)
> > > > >
> > > > > Thanks,
> > > > >
> > > > > --Todd
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Matthias Wessendorf
> > > > Aechterhoek 18
> > > > 48282 Emsdetten
> > > > blog: http://jroller.com/page/mwessendorf
> > > > mail: mwessendorf-at-gmail-dot-com
> > > >
> > >
> > >
> > > --
> > > Matthias Wessendorf
> > > Aechterhoek 18
> > > 48282 Emsdetten
> > > blog: http://jroller.com/page/mwessendorf
> > > mail: mwessendorf-at-gmail-dot-com
> > >
> >
>
>
> --
> Matthias Wessendorf
> Aechterhoek 18
> 48282 Emsdetten
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com



--
--------------------------------------
Standing Bear Has Spoken
--------------------------------------

Reply via email to