• 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: "Jerry W. Walker" <email@hidden>
  • Date: Wed, 8 Feb 2006 11:38:07 -0500

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

    jerrywwalker@gee-em-aye-eye-ell.com
    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

  • Follow-Ups:
    • Re: Accessing the session in WOLongResponsePage.performAction
      • From: Helge Staedtler <email@hidden>
References: 
 >Accessing the session in WOLongResponsePage.performAction (From: Fabrice Pipart <email@hidden>)
 >Re: Accessing the session in WOLongResponsePage.performAction (From: Kieran Kelleher <email@hidden>)
 >Re: Accessing the session in WOLongResponsePage.performAction (From: Fabrice Pipart <email@hidden>)
 >Re: Accessing the session in WOLongResponsePage.performAction (From: Kieran Kelleher <email@hidden>)
 >Re: Accessing the session in WOLongResponsePage.performAction (From: Fabrice Pipart <email@hidden>)

  • Prev by Date: WebObjects licensing still unclear / XCode 2.1 no longer available ?
  • Next by Date: Re: Accessing the session in WOLongResponsePage.performAction
  • Previous by thread: Re: Accessing the session in WOLongResponsePage.performAction
  • Next by thread: Re: Accessing the session in WOLongResponsePage.performAction
  • Index(es):
    • Date
    • Thread