• 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: Accessing the session in WOLongResponsePage.performAction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing the session in WOLongResponsePage.performAction


  • Subject: Re: Accessing the session in WOLongResponsePage.performAction
  • From: Kieran Kelleher <email@hidden>
  • Date: Wed, 8 Feb 2006 22:38:07 -0500

Also, you can examine the open source code in the ERXLongResponse and ERXLongResponseTask in Project Wonder to see the full source code and inner workings of a very elegant WOComponent (ERXLongResponse) that can be dropped on any page and simply have a method that returns a subclass of ERXLongResponseTask (this is a Runnable with the performAction) bound to it. .... very elegantly works on the current page without the need to travel to a special page for the long response task to execute. You can use a conditional bound to the method that returns the ERXLongResponseTask subclass to display status content and/or hide page content and simply have your performAction set the ERXLongResponseTask reference on the page to null when the task is complete to restore the page to 'normal' operation.

On Feb 8, 2006, at 12:08 PM, Helge Staedtler wrote:

hi!

Perhaps this stuff i postted some time ago at wocode.com might help you with the longresponse:

 http://WOCode.com/cgi-bin/WebObjects/WOCode.woa/wa/ShareCodeItem? itemId=291

You will find an enhanced version of this code in action in the *brandnew* NoxymoCore Framework for WebObjects which also sports a nice wrappercomponent fro longresponse-status-displaying. More Information is available here:

  http://www.noxymo.com/product_noxymocore.html

 regards,
 helge




Am 08.02.2006 17:38 Uhr schrieb "Jerry W. Walker" unter <email@hidden>:



Hi, Fabrice,

The API documentation for WOLongResponsePage is generally inadequate for using the component. However, Apple has provided a nice example with the Developer distribution at:

      /Developer/Examples/JavaWebObjects/LongRequest/

There is a nice Readme.html document in the project's directory that you can open directly in your browser for some general overview documentation.

It will help more, however, if you build, run and review that example. You'll note the following comment in the displayed Main page:

     This example application demonstrates the creation and use of long
     running request/response pages which enables web-based applications
     to perform lengthy tasks while providing feedback and means of
     interruption to the user. This example will demonstrate six
     different scenarios of long requests, from the very basic just
     showing progression to the very robust, giving cancelling options and
     sending e-mail upon competition.


In particular, when you build and run the app, click on the link that's labeled "Refresh with Data Information, Progress bar and live data." Then check the code for that component.

 Good luck.

 Regards,
 Jerry

 On Feb 8, 2006, at 7:58 AM, Fabrice Pipart wrote:


I have to admit, I don't remember the Observer pattern very well ;-)
But if I don't make any mistake, the "separate thread's monitoring class" you talk about is where my WOLongResponsePage's performAction is executed. And to be an Observer of the Session, it needs to have access to the Session doesn't it?
And it is what I can't manage to do without having an error in the console :-(



 

--
__ Jerry W. Walker,
   WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
     203 278-4085        office






_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list      (email@hidden) Help/Unsubscribe/Update your Subscription:
 This email sent to email@hidden



--
 Helge Städtler

- Expect and Respect.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Accessing the session in WOLongResponsePage.performAction (From: Helge Staedtler <email@hidden>)

  • Prev by Date: QueryBindings, Datasource and/or FetchSpecifications
  • Next by Date: Re: SQL?
  • Previous by thread: Re: Accessing the session in WOLongResponsePage.performAction
  • Next by thread: principleClass Error on deployment
  • Index(es):
    • Date
    • Thread