Thanks for your information Chuck.

Regards,
Shravan Kumar. M
-------------------------------------

--- On Mon, 7/27/09, Chuck Hill <[email protected]> wrote:

From: Chuck Hill <[email protected]>
Subject: Re: WOLongResponsePage issues
To: "Tim Worman" <[email protected]>
Cc: "Shravan Kumar. M" <[email protected]>, [email protected]
Date: Monday, July 27, 2009, 4:06 AM

This class (my modified version of it) is available in our GVCEOFExtensions 
framework.  GVCWOExtensions framework shows how we use it.

http://www.gvcsitemaker.com/chill/gvc_frameworks

Chuck



On Jul 26, 2009, at 11:21 AM, Tim Worman wrote:

> WOCode hasn't been available for a while. I'm not sure who was hosting the 
> site or who it belonged to. It would be cool if the stuff that was hosted 
> there could be moved somewhere reliable. Anyone?
> 
> I've never used MulitECLockManager but I'm pretty sure there's got to be 
> other places to get it. I know other folks use it so, if nothing else, 
> someone could send it to you.
> 
> Tim
> UCLA GSE&IS
> 
> On Jul 25, 2009, at 1:10 PM, Shravan Kumar. M wrote:
> 
>> Hi Tim,
>> 
>> Thanks for your suggestion.
>> 
>> I have changed my longresponse code to create a temporary ERXEC's 
>> editingcontext and then once the process is completed am localizing the 
>> content to my old ec. This has solved the issues of locking/ unlocking ec.
>> 
>> However, I see that many links pointing to WOCode.woa end up with No 
>> instance available,reason might be the app may be down. I tried to get the 
>> MultiECLockManager residing in WOCode.woa site as referred in WO wiki, but 
>> link is broken!!! Don't know who will take care of this issue?
>> 
>> Thank You,
>> Shravan Kumar. M
>> ----------------------------
>> 
>> --- On Sat, 7/25/09, Tim Worman <[email protected]> wrote:
>> 
>> From: Tim Worman <[email protected]>
>> Subject: Re: WOLongResponsePage issues
>> To: "Shravan Kumar. M" <[email protected]>
>> Cc: "George Domurot" <[email protected]>, 
>> [email protected]
>> Date: Saturday, July 25, 2009, 9:25 PM
>> 
>> Shravan:
>> 
>> It sounds to me like something is wrong with your code related to locking 
>> and unlocking. Session.defaultEditingContext() has automatic locking - you 
>> do not have to do it manually. So, if you continue using that EC you can 
>> take out the locking code.
>> 
>> The best solution would be to use an EC other than 
>> Session.defaultEditingContext and use one of the frameworks that provides 
>> auto-locking. You could use MultiECLockManager or Wonder's ERXEC and they 
>> lock automatically.
>> 
>> Tim
>> UCLA GSE&IS
>> 
>> On Jul 24, 2009, at 11:34 PM, Shravan Kumar. M wrote:
>> 
>> > Thanks George. I was doing same, debugging the code, and trying to pull 
>> > odd man out ;-)
>> >
>> > I think I have finally found the issue of LongResponsePage not getting 
>> > refreshed. In the performAction() method the business logic is LOCKING the 
>> > session's defaultEditingContext and performing the business operation and 
>> > soon after this LongResponsePage thread is blocking and failing to refresh.
>> >
>> > Once, LongResponsePage operation thrown an error of editingContext is not 
>> > locked. So, I locked it and unlocked it as well!!!
>> >
>> > Am wondering how should I perform my business operation without locking my 
>> > editingContext?
>> >
>> > I see that we should setup a wiki page dedicated to LongResponsePage page 
>> > caveats, pros, cons, issues, usage examples, best practices,...!
>> >
>> > Thank You,
>> > Shravan Kumar. M
>> >
>> > --- On Sat, 7/25/09, George Domurot <[email protected]> wrote:
>> >
>> > From: George Domurot <[email protected]>
>> > Subject: Re: WOLongResponsePage issues
>> > To: "Shravan Kumar. M" <[email protected]>
>> > Cc: [email protected]
>> > Date: Saturday, July 25, 2009, 3:31 AM
>> >
>> > Shravan, do you have a custom page wrapper that is performing and special 
>> > tricks?
>> >
>> > If you have a simple example working, try taking an exact duplicate of the 
>> > example and using it within your project.  Make sure you don't add any 
>> > additional code or components, and make sure it still works as expected.  
>> > If so, start layering in your code a little bit at a time until it breaks.
>> >
>> > -George
>> >
>> > On Jul 24, 2009, at 11:59 AM, Shravan Kumar. M wrote:
>> >
>> >> Hello Group,
>> >>
>> >> I have simulated the Long response code from my app to a sample project 
>> >> and Long response is performing perfect there... but NOT in my app, i.e., 
>> >> in my app long response page is not refreshing and returning no instance 
>> >> page.
>> >>
>> >> I see that there should be some setting or some configuration in my app 
>> >> that is causing long response to NOT work correctly... I am still trying 
>> >> to extract this thing... could any one help me what am I missing/ should 
>> >> look at?
>> >>
>> >> Thank You,
>> >> Shravan Kumar. M
>> >> ------------------------------
>> >>
>> >> --- On Fri, 7/24/09, [email protected] 
>> >> <[email protected]> wrote:
>> >>
>> >> From: [email protected] <[email protected]>
>> >> Subject: Re: WOLongResponsePage issues
>> >> To: "shravan kumar" <[email protected]>
>> >> Cc: [email protected]
>> >> Date: Friday, July 24, 2009, 1:11 PM
>> >>
>> >> With use both prototype and jQuery (in compatibilty mode) without any 
>> >> problems.
>> >>
>> >> But I never used WOLongResponsePage so I can not compare them.
>> >>
>> >> Maybe someone could give you a progress bar thread implementation/example 
>> >> dealing with sessio nand editing context
>> >>
>> >> Jérémy
>> >> -----shravan kumar <[email protected]> a écrit : -----
>> >>
>> >> A : [email protected]
>> >> De : shravan kumar <[email protected]>
>> >> Date : 24/07/2009 09:24
>> >> cc: [email protected]
>> >> Objet : Re: WOLongResponsePage issues
>> >>
>> >> Thanks for your response Jérémy . But as my business logic is very much 
>> >> tied with session, editing context, I may need WOLongResponsePage.
>> >>
>> >> Also, I have NOT integrated Project Wonder to my system and I only use 
>> >> few of Project Wonder components here and there in my application. I hope 
>> >> to use AjaxProgressBar I have to at least integrate Project Wonder's AJAX 
>> >> framework (we know jQuery, we like it and we use it, but not Prototype.js 
>> >> which is the core of Project Wonder's Ajax framework, sorry! for my 
>> >> privileges).
>> >>
>> >> Correct me if am wrong?
>> >>
>> >> Thank You,
>> >> Shravan Kumar. M
>> >> -------------------------------------
>> >>
>> >> --- On Fri, 7/24/09, [email protected] 
>> >> <[email protected]> wrote:
>> >>
>> >> From: [email protected] <[email protected]>
>> >> Subject: Re: WOLongResponsePage issues
>> >> To: "shravan kumar" <[email protected]>
>> >> Cc: [email protected]
>> >> Date: Friday, July 24, 2009, 12:30 PM
>> >>
>> >> Hello,
>> >>
>> >> Why not using Ajax capabilities of the project Wonder like 
>> >> ajaxprogressbar ?
>> >>
>> >> It's easy to implement except dealing with thread and session if you're 
>> >> working with editing context.
>> >>
>> >> Jérémy
>> >>
>> >> -----webobjects-dev-bounces+jeremy.deroyer=ingencys....@lists.apple.com a 
>> >> écrit : -----
>> >>
>> >> A : WO Dev Group <[email protected]>
>> >> De : shravan kumar <[email protected]>
>> >> Envoyé par : 
>> >> webobjects-dev-bounces+jeremy.deroyer=ingencys....@lists.apple.com
>> >> Date : 24/07/2009 08:54
>> >> Objet : WOLongResponsePage issues
>> >>
>> >> Hi Group,
>> >>
>> >> I am having trouble developing a long response page!!! I have developed a 
>> >> page which extends WOLongResponsePage component and implemented 
>> >> performActionI(), ... methods. I have actually referred to 
>> >> SimpleRefreshPage example from WebObjects distribution.
>> >>
>> >> Am not sure what the problem is, but I have various issues:
>> >> 1) Not able to create a component in "pageForResult()" method (error 
>> >> says, context is null, ...). So I have created the component in the 
>> >> calling page and passing the created component to long response and 
>> >> returning this component in pageForResult() method. But I have read in WO 
>> >> that, if a component is created and cached in a variable, we have to 
>> >> invoke ensureAwakeInContext(context) method to make sure the cached 
>> >> component is awakened and is up in the session store.
>> >>
>> >> 2) I have placed a flash movie (.swf file) in the long response page, so 
>> >> the movie plays and replays as the page refreshes (this flash movie does 
>> >> not read any value from long response page like: status of long response, 
>> >> ...).
>> >>
>> >> 3) Issue: The long response page is NOT refreshing and after some time 
>> >> "No instance available" message is shown in the browser, but note that 
>> >> server is continuing processing my request.
>> >>
>> >> 4) Below is the code snippet from my long response page:
>> >>
>> >>     Number refreshCount = new Integer(1);
>> >>     public void appendToResponse(...) {
>> >>         setRefreshInterval(refreshCount);
>> >>         super.appendToResponse(...);
>> >>     }
>> >>
>> >>     public Object performAction() {
>> >>         Object value = processImages();
>> >>         //value is of boolean type
>> >>         return value;
>> >>     }
>> >>
>> >>     /**
>> >>         User & CImage are EO's and we using session's 
>> >>defaulteditingcontext here.
>> >>     */
>> >>     private boolean processImages() {
>> >>         User usr = ((Session)session()).loggedInUser();
>> >>         boolean isSuccess = CImage.processImages(usr);
>> >>
>> >>         return isSuccess;
>> >>     }
>> >>
>> >>     public WOComponent pageForResult() {
>> >>         return nextPage;
>> >>     }
>> >>
>> >>     public WOComponent refreshPageForStatus() {
>> >>         return this;
>> >>     }
>> >>
>> >> 5) If anyone could advise me do's and don'ts of WOLongResponsePage coding 
>> >> and best practices, that would be great. I see we are really missing nice 
>> >> documentation on WOLongResponsePage usage.
>> >>
>> >> Unfortunately, I cannot user ERXWOLongResponsePage.
>> >>
>> >> Please suggest what am I doing wrong here/ probable solutions.
>> >>
>> >> Thanks in advance,
>> >> Shravan Kumar. M
>> >> -------------------------------------
>> >>
>> >>
>> >>  _______________________________________________
>> >> 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/jeremy.deroyer%40ingencys.net
>> >>
>> >> This email sent to [email protected]
>> >>
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> 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/george%40boxofficetickets.com
>> >>
>> >> This email sent to [email protected]
>> >
>> >
>> > _______________________________________________
>> > 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/lists%40thetimmy.com
>> >
>> > This email sent to [email protected]
>> 
>> 
> 
> _______________________________________________
> 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/chill%40global-village.net
> 
> This email sent to [email protected]
> 

--Chuck Hill             Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars




      
 _______________________________________________
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]

Reply via email to