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, jeremy.dero...@ingencys.net <jeremy.dero...@ingencys.net> 
wrote:

From: jeremy.dero...@ingencys.net <jeremy.dero...@ingencys.net>
Subject: Re: WOLongResponsePage issues
To: "shravan kumar" <mshravan_...@yahoo.com>
Cc: webobjects-dev@lists.apple.com
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 <webobjects-dev@lists.apple.com>
De : shravan kumar <mshravan_...@yahoo.com>
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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net

This email sent to jeremy.dero...@ingencys.net



      
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to