Re: WOLongResponsePage -- An Alternative
Re: WOLongResponsePage -- An Alternative
- Subject: Re: WOLongResponsePage -- An Alternative
- From: email@hidden
- Date: Tue, 30 Sep 2003 10:55:36 CDT
- Priority: 3 (Normal)
[demime could not interpret encoding binary - treating as plain text]
It IS tricky to use WOLongResponse page with a long-running EOF task,
though. If you're not careful, the status page wont' be able to update
itself, because it will be blocked out by locks taken by the EOF task.
I have yet to figure out a general purpose design to allow WOLongResponse
page (or any ohter mechanism; it's not WOLongResponse page's fault, it's
general WO and EOF design issues) to work with long running EOF tasks.
As a starter, you probably won't be able to use the
session.defaultEditingContext(), you'll probably need to use another EC.
Alternately, and even more complexly, you'd need to store 'progress'
information somewhere _outside_ of the session, so that you could access
it while another thread is accessing the original session. There are a
bunch of approaches you could theoretically use, some ending up a lot
more complicated than others.
So I don't have too much useful information to provide, but I just wanted
to reassure Jonathan F that if he has trouble getting WOLongResponse page
to work with an EOF task, he is not alone, nor is he reinventing the
wheel. In general, there's been no general purpose solution that I've
seen shared on the list.
--Jonathan
On Mon, 29 Sep 2003 18:53:03 -0700 steve stout wrote:
> WOLongResponsePage isn't that hard to setup. Take a look at the
> example in /Developer/Examples/JavaWebObjects/LongRequest. It gives
> several examples of how to setup the component.
>
> ./steve
>
>
>
>
> On Monday, September 29, 2003, at 02:05 AM, Jonathan Fleming wrote:
>
> > OK I got no response from the "WOLongResponsePage" post, so rather
> > than trying to configure a long response page, is there an alternative
> > way of showing a running count as the EO's are being fetched from the
> > database?
> > I'm just looking for a simple way of letting the user know that their
> > request is in progress...
> >
> > Jonathan :^)
> >
> > _________________________________________________________________
> > Sign-up for a FREE BT Broadband connection today!
> > http://www.msn.co.uk/specials/btbroadband
> > _______________________________________________
> > 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.
> >
>
>
>
> ///---------------------------------------
> steve stout
> web coordinator
> arizona student unions
> 52o.626.o1o9
>
> http://www.union.arizona.edu
> _______________________________________________
> 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.
_______________________________________________
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.