AjaxCallThrottlingDecorator - 1.6

2012-07-09 Thread Douglas Ferguson
How do you throttle ajax calls in 1.6?

Douglas

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



Re: AjaxCallThrottlingDecorator - 1.6

2012-07-09 Thread Sebastien
Hi Douglas,

You need to override AbstractDefaultAjaxBehavior#updateAjaxAttributes like
this:

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
  super.updateAjaxAttributes(attributes);

  attributes.setThrottlingSettings(new ThrottlingSettings(my-throttle,
Duration.ONE_SECOND));
}

Best regards,
Sebastien.


On Tue, Jul 10, 2012 at 1:17 AM, Douglas Ferguson the...@gmail.com wrote:

 How do you throttle ajax calls in 1.6?

 Douglas

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