title: How to disable button when pressed in Apache Wicket
body: <p>I need to disable this button when pressed. I know some hard coding methods but I want t disable dynamically using some default Apache Wicket's function.</p>
  
  <pre><code>form.add(new Button("Continue") {
      private static final long serialVersionUID = 1L;
  
      @Override
      public void onSubmit() {
      process();
      };
  });
  </code></pre>