title: Wicket 6.1 AjaxEventBehavior - how to set delay?
body: <pre><code>AjaxEventBehavior behavior = new AjaxEventBehavior("keyup"){
  
      @Override
      protected void onEvent(AjaxRequestTarget target) {
  
          System.out.println("Hello world!");
      }
  };
  
  form.add(behavior); 
  </code></pre>
  
  <p>In previous versions of Wicket I could have done it like:</p>
  
  <pre><code>behavior.setThrottleDelay(Duration.ONE_SECOND);
  </code></pre>
  
  <p>But since version 6.1 this opportunity has been erased. And the web is full of previous versions tutorials which all contain .setThrottleDelay() methods.</p>
  
  <p>Basically, the goal is to call out the behavior when the person has stopped typing in the form. Currently it calls out the behaviour every time INSTANTLY when the key gets up which basically spams the server side. That's why I would like to delay. Background: I'm currently trying to make queries into database and get out the data which are similar to the form input. And all that in the time when the person is typing. But the delay would be needed in goal to keep server-side/SQL out of the "bombarding range".</p>
  
  <p>Also I am open to alternatives.</p>