I have relied on WOLongResponsePage for situations where I have
time-consuming calculations or database processes whose progress I
can track.
I'm now dealing with a page that reports on data from surveys, some
of which can be very long. Obtaining the raw data doesn't seem to be
a problem--that can even just be scooped up from the database and
filtered in memory to get the answer data for each item on the survey.
The delay in creating the page seems to come in actually generating
the HTML, primarily because it constructs tables of data and charts.
WOLongResponse doesn't seem to be quite the right tool for this
situation. The building of the template isn't something I can do
within performTask, AFAIK. For one thing, the template gets filled in
after appendToResponse completes, which waits for performTask to
complete. I suppose that I could use performTask to fetch the data
and then construct tables as HTML (rather than relying on the
html/wod files and accessor calls), similariy construct any graphics,
and pre-cache all that and then just load it into the template. Seems
a little primitive, though, to build HTML as strings.
But I can't help but wonder if there isn't a strategy to request a
page generated from a component, put up a progress bar while it's
generating, and then just hand it off to the server when it's ready.
-- Paul
--
Paul Hertz <[EMAIL PROTECTED]>
|(*,+,#,=)(#,=,*,+)(=,#,+,*)(+,*,=,#)|
<http://collaboratory.nunet.net/phertz>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]