Display timeout page for long running requests

2010-04-06 Thread Mak
Hi All,
I am new to wicket framework. I have a requirement that my wicket
application needs to abandon its request processing after the specified
time  (say 5 secs ) has elapsed. Also, an error page / popup
should be displayed after timeout to notify the user. In other words,
from user point of view either we should get the correct output page before
5 seconds or display timeout page after 5 seconds.

Any ideas/directions on how to implement this requirement would be
highly appreciated!!

Thanks
Mak


Re: Display timeout page for long running requests

2010-04-06 Thread Gerolf Seitz
you can use an ajax timer to check if the long running process has finished
after
5 seconds and abort the process and redirect the user to the timeout page if
it hasn't.

  gerolf

On Wed, Apr 7, 2010 at 12:11 AM, Mak makar...@gmail.com wrote:

 Hi All,
 I am new to wicket framework. I have a requirement that my wicket
 application needs to abandon its request processing after the specified
 time  (say 5 secs ) has elapsed. Also, an error page / popup
 should be displayed after timeout to notify the user. In other words,
 from user point of view either we should get the correct output page before
 5 seconds or display timeout page after 5 seconds.

 Any ideas/directions on how to implement this requirement would be
 highly appreciated!!

 Thanks
 Mak



Re: Display timeout page for long running requests

2010-04-06 Thread Igor Vaynberg
alternatively you can have a filter that adds the current thread to
some background monitoring process which can, if needed, take over the
request. you will need to play around with that and your container -
eg test what happens if you interrupt a thread, etc.

-igor

On Tue, Apr 6, 2010 at 3:33 PM, Gerolf Seitz gerolf.se...@gmail.com wrote:
 you can use an ajax timer to check if the long running process has finished
 after
 5 seconds and abort the process and redirect the user to the timeout page if
 it hasn't.

  gerolf

 On Wed, Apr 7, 2010 at 12:11 AM, Mak makar...@gmail.com wrote:

 Hi All,
 I am new to wicket framework. I have a requirement that my wicket
 application needs to abandon its request processing after the specified
 time  (say 5 secs ) has elapsed. Also, an error page / popup
 should be displayed after timeout to notify the user. In other words,
 from user point of view either we should get the correct output page before
 5 seconds or display timeout page after 5 seconds.

 Any ideas/directions on how to implement this requirement would be
 highly appreciated!!

 Thanks
 Mak



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org