Hi,
Thanks for the reply. Actually, my situation is some thing like this.
The data should be presented like a tree table. For example:
Name Author ModifiedDate
A xxx xxx
|__Children yyy yyy
|
|__Children zzz zzz
|
|__ Grand aaa aaa
The number of children under root or under branches may be any thing in
the range of 0 to 10,000. I am able to get this using slightly
modifying the tacos tree implementation, but to render child items of
around 500 it is taking around 30 seconds of which data retrieval from
db is taking only 2 to 8 seconds based on number of child items.
As this is a very long wait for a web user, thinking of using some kind
of pagination, so that can reduce the waiting time. I am mimicking a
desk top application, the UI should be very similar to the desktop one,
so can't add any additional buttons or do layout change.
And on another note, is there a way to open only the selected node and
close the other nodes, so that can reduce some significant amount of
time.
Any help is appreciated very much. Thanks in advance.
Regards,
Surya
-----Original Message-----
From: Viktor Szathmary [mailto:[EMAIL PROTECTED]
Sent: 11 July 2005 21:22
To: Tapestry users
Subject: Re: Tacos Tree and Pagination
On 7/11/05, Surya Prakash <[EMAIL PROTECTED]> wrote:
>
> I am using Tacos Tree, it is working fine, but some times, the numbers
> of items returned are so many and it is taking a long time to render.
> Is there any way to provide pagination, so that only a fixed number of
> items are returned?
How large a tree are we talking about? How would the pagination look
like?
Here are two ideas that you can relatively easily implement in your
app to alleviate the problem:
- if a folder contains too many items, try introducing another level
of automatic grouping folders. For example based on the number of
items make up virtual folder for letter A-K, L-Z.. All this can be
done in your ContentProvider implementation.
- Another one would be a drill-down capability... render an extra
button on tree folders, that allows users to make that folder the root
of the tree.
regards,
Viktor
---------------------------------------------------------------------
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]