Hi Tom,

Take a look at [1]...[4]. There I'm creating a thread each time the "long"
running process is launched but maybe it would be more correct to use a
thread pool or use scheduler  like quartz for this task. Feel free to
use/change the code there as it best suits your needs.

Ernesto

References,


1-
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/export
2-
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/progress
3-
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.export/src/com/antilia/export/pdf
4-
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.export/src/com/antilia/export/excel


On Fri, Apr 9, 2010 at 9:44 AM, Thomas Götz <[email protected]> wrote:

> Hi Ernesto,
>
> this sounds like a viable solution, I'd be glad if you could provide me
> with some more details (e.g. code samples, if available).
>
>   -Tom
>
>
> Am 09.04.2010 09:39, schrieb Ernesto Reinaldo Barreiro:
>
>  Hi Tom,
>>
>> What I do, for instance, when exporting files to PDF, Excel, etc, is start
>> the process on a background thread, block the screen so that users can
>> only
>> wait or stop the process, and use an AJAX timer to get back to the server
>> every few seconds to monitor the progress and display it as progress-bar.
>> This seems to work fine for me but might not be the most efficient
>> solution... I can give you more details if you want.
>>
>> Best,
>>
>> Ernesto
>>
>> On Fri, Apr 9, 2010 at 8:55 AM, Thomas Götz<[email protected]>  wrote:
>>
>>  Thanks for all the hints so far, they are really helpful .... but ;)
>>>
>>> Well, I don't want to have busy indicators on different components, I'm
>>> looking for a way to display status messages (like eg with jGrowl) during
>>> the long-running process (triggered by AjaxButton). I guess the only way
>>> to
>>> achieve this is with a solution as stated by Nishant (involving some kind
>>> of
>>> JS polling) ...
>>>
>>>   -Tom
>>>
>>>
>>> Am 09.04.2010 08:48, schrieb Tomasz Dziurko:
>>>
>>>  You should check visural-wicket project
>>>
>>>> (http://code.google.com/p/visural-wicket/) and live demo on
>>>> http://visural-wicket-examples.appspot.com/app/ . In "submitters"
>>>> there are some fancy looking "waiting" popup messages which could
>>>> help.
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to