• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOLongResponsePage -- An Alternative
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: java.lang.OutOfMemoryError with WODisplayGroup
  • Next by Date: Re: java.lang.OutOfMemoryError with WODisplayGroup
  • Previous by thread: Re: Oddity with disabled Submit button
  • Next by thread: Re: java.lang.OutOfMemoryError with WODisplayGroup
  • Index(es):
    • Date
    • Thread