You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Douglas Ferguson <th...@gmail.com> on 2012/07/10 01:17:24 UTC

AjaxCallThrottlingDecorator - 1.6

How do you throttle ajax calls in 1.6?

Douglas

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


Re: AjaxCallThrottlingDecorator - 1.6

Posted by Sebastien <se...@gmail.com>.
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 <th...@gmail.com> wrote:

> How do you throttle ajax calls in 1.6?
>
> Douglas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>