Quantcast

AjaxSelfUpdatingTimerBehavior stops working

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

AjaxSelfUpdatingTimerBehavior stops working

esajjkh
When I create an instance of AjaxSelfUpdatingTimerBehavior with value of TIMEOUT, the onPostProcessTarget methods is being called immediately rather than it should wait for the specified time.
Below is the code snippet for clarity.

final long TIMEOUT= 63078410055L; // it becomes 730,1 Days

conferenceStartTimer = new AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(TIMEOUT)) {

            @Override
            protected void onPostProcessTarget(AjaxRequestTarget target) {
                  info(getString("INVALID TIMEOUT"));
               }
        };

Can someone help me why it is calling this method before the time is out?
Thank you!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: AjaxSelfUpdatingTimerBehavior stops working

Francois Meillet
odd : the maximum value for the timout is Integer.MAX_VALUE.

François

Le 9 juil. 2012 à 15:11, esajjkh a écrit :

> When I create an instance of AjaxSelfUpdatingTimerBehavior with value of
> TIMEOUT, the onPostProcessTarget methods is being called immediately rather
> than it should wait for the specified time.
> Below is the code snippet for clarity.
>
> final long TIMEOUT= 63078410055L; // it becomes 730,1 Days
>
> conferenceStartTimer = new
> AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(TIMEOUT)) {
>
>            @Override
>            protected void onPostProcessTarget(AjaxRequestTarget target) {
>                  info(getString("INVALID TIMEOUT"));
>               }
>        };
>
> Can someone help me why it is calling this method before the time is out?
> Thank you!
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxSelfUpdatingTimerBehavior-stops-working-tp4650412.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

François Meillet
Formation Wicket - Développement Wicket
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: AjaxSelfUpdatingTimerBehavior stops working

esajjkh
Thank you!
Loading...