Re: WOLongResponsePage -- An Alternative
Re: WOLongResponsePage -- An Alternative
- Subject: Re: WOLongResponsePage -- An Alternative
- From: "Jonathan Fleming" <email@hidden>
- Date: Thu, 09 Oct 2003 15:54:37 +0100
From: Michael Henderson <email@hidden>
To: email@hidden
CC: email@hidden, email@hidden,
email@hidden
Subject: Re: WOLongResponsePage -- An Alternative
Date: Tue, 30 Sep 2003 10:43:08 -0700
Hi,
One other issue with WOLongResponsePage, if you have ANY links on the
page and the user clicks
on them then you lose the progress page.
I ended up using a separate thread with it's own EOF stack to do the work
with an object to pass status data
and results between the background thread and the main thread (stored in
the session in the main thread).
The progress page used a refresh to see status by querying the shared
status object.
This pattern also allowed the user to leave the page and return later to
check on progress.
I ended up going even further and storing the task information in the
database and using a separate WOApp
to perform tasks and update progress in the database. This allowed the user
to submit multiple tasks and
have a 'job queue' page to view status of all tasks. I was also able to
implement scheduled tasks on top of this.
Sounds like this was a bit involved? When someone or Apple actually come up
with a easier way to achieve LongResponse I definitely want to know about
it - I like keeping things simple - until then I've pushed this headache
aside.
Thanks all the same Mike
Jonathan :^)
Mike
_________________________________________________________________
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.