BTW, great work on the jsf-comp aatree. It gave me a good understanding on
the tree2 component before I implemented using ajax4jsf. I only implement
the lazy loading using ajax4jsf because we are already using it for other
components.
William Huang
Product Development Team
"Andrew Robinson"
<andrew.rw.robins
[EMAIL PROTECTED]> To
"MyFaces Discussion"
09/07/2006 04:59 <[email protected]>
PM cc
Subject
Please respond to Re: tree 2 -- lazy loading.
"MyFaces
Discussion"
<[EMAIL PROTECTED]
ache.org>
I extend the tree2 classes not because of AJAX but to implement a lazy
loading where the children nodes are not known until they are asked
for (as in a database storage example). So the extended classes for
tree2 will also work with Ajax4JSF, I just had more experience with AA
at the time
On 9/7/06, William Huang <[EMAIL PROTECTED]> wrote:
> Andrew's jsf-comp works. which uses AjaxAnywhere and extending tree2
> classes.
>
> I also implemented tree2 lazy loading using Ajax4JSF, without needing to
> extend any tree2 classes.
>
> either way, it ways.
>
>
> William Huang
> Product Development Team
>
> "Jiang, Jane
> \(NIH/NCI\) [C]"
> <[EMAIL PROTECTED]
To
> .gov> "MyFaces Discussion"
> <[email protected]>
> 09/07/2006 04:41
cc
> PM
>
Subject
> RE: tree 2 -- lazy loading.
> Please respond to
> "MyFaces
> Discussion"
> <[EMAIL PROTECTED]
> ache.org>
>
>
>
>
>
>
> I found your blogs very useful. It looks like I can overwrite the
> getChildrenCount() method of my tree node to get around the problems I
> have. I never used AJAX. How complicated is it to plug in AjaxAnywhere?
>
> Many thanks for your help,
>
> Jane
>
>
>
> -----Original Message-----
> From: Andrew Robinson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 07, 2006 4:31 PM
> To: MyFaces Discussion
> Subject: Re: tree 2 -- lazy loading.
>
>
> FYI:
>
> I also published this code in the jsf-comp project at:
>
> http://sf.net/projects/jsf-comp
>
> It is under the AjaxAnywhere package:
>
>
http://sourceforge.net/project/showfiles.php?group_id=137466&package_id=197375
>
>
>
> On 9/7/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > I have a WIKI on how to do lazy loading from an external source (web
> > service, database, etc.):
> >
> >
>
http://andrewfacelets.blogspot.com/2006/06/myfaces-tree2-creating-lazy-loading.html
>
> >
> > On 9/7/06, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote:
> > > I've been using the 2nd method of tree2 lazy loading I learned from
the
> wiki page. I overwrote the getChildren() method to load in the children.
> It works fine. I am very surprised that the tree slowed down.
> > >
> > > I tried to track down the problem and found that every time I try to
> expand one node, the getChildren() method gets called for all visible
> nodes. This behavior defeated half of the purpose of lazy loading since
> the sibling nodes actually get loaded right away. So we are actually
> loading one layer at a time, not one node at a time. To make the matter
> worse, if a node has no child nodes after the first round, the
> super.getChildren().size() == 0 is always true. So we repeatly goes to
the
> database and try to find more children for those nodes.
> > >
> > > Has any one found a way to work around this problem? Is there a
better
> way to do lazy loading?
> > >
> > > Thanks,
> > >
> > > Jane
> > >
> > >
> > > -----Original Message-----
> > > From: Andrew Robinson [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, July 17, 2006 6:57 PM
> > > To: MyFaces Discussion
> > > Subject: Re: tree 2 -- lazy loading.
> > >
> > >
> > > Check the archives. You will see my post about a lazy-loading AJAX
> > > tree for jsf-comp
> > >
> > > On 7/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > Quick question:
> > > >
> > > > Is the MyFaces Tree2 lazy loadable? Any examples anywhere?
> > > >
> > > > Thanks in advance,
> > > >
> > > > --Brad.
> > > >
> > >
> >
>
> Disclaimer: This electronic mail and any attachments are confidential and
may be privileged. If you are not the intended recipient, please notify the
sender immediately by replying to this email, and destroy all copies of
this email and any attachments. Thank you.
>
>
Disclaimer: This electronic mail and any attachments are confidential and may
be privileged. If you are not the intended recipient, please notify the sender
immediately by replying to this email, and destroy all copies of this email and
any attachments. Thank you.