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
|