Hi,

while I agree that expand/collapse notifications would be useful in
some cases, I don't think you need this for on-demand loading.

The way the ContentProvider interface is structured, if you load
things there (in getChildren) you will load only the necessary parts
of the data for rendition. If you wish to bulk load all the relevant
data (instead of lazy-fetching from getChildren), you can do it based
on the treeState Set of keys that tells you what nodes are expanded at
the moment (thus only their children will need to be loaded). At least
that's my theory :)

regards,
  viktor

On 5/24/05, Vjeran Marcinko <[EMAIL PROTECTED]> wrote:
> Is it planned to add some kind of listener when expanding/collapsing ?
> It's quite useful when one wants to load node's children on-demand.
> 
> -Vjeran
> 
> ----- Original Message -----
> From: "Viktor Szathmary" <[EMAIL PROTECTED]>
> To: "Tapestry users" <[email protected]>
> Sent: Tuesday, May 24, 2005 6:52 PM
> Subject: Re: Tacos Tree Question
> 
> 
> Hi,
> 
> glad you found tacos:Tree reasonably easy-to-use, that was the design goal
> :)
> 
> I found the contrib:Tree's behavior of automatically expanding on
> label clicks annoying - trees generally should not work that way
> (think windows explorer, eclipse, etc). User expectation is: +/-
> expands, label performs selection but no expansion.
> 
> regards,
>  viktor
> 
> 
> On 5/24/05, Kevin Menard <[EMAIL PROTECTED]> wrote:
> >
> > On May 23, 2005, at 10:38 PM, Kevin Menard wrote:
> >
> >
> >
> > > Now I have another question :-)  Is there a way to get the "label"
> > > to expand the node as well.  It looks like the file system tree
> > > does this, so I'll look into that.  Just wondering if someone else
> > > might have experience with this.  As an example look at how
> > > contrib:Tree treats the +/- & label as a single link.  Clicking on
> > > the label triggers the appropriate action as well as expanding the
> > > node.  That's sorta the thing I want.
> > >
> >
> > Replying to myself, I found I could do this by modifying the
> > tacos:Tree "state" parameter in my DirectLink listener.  It's a bit
> > funky having to do this by hand since I relied so much on
> > contrib:Tree doing it, but the work is minimal and straightforward.
> >
> > --
> > Kevin
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.322 / Virus Database: 266.11.14 - Release Date: 20.5.2005
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to