title: How do I change link-text in Wicket?
body: <p>I created a link with static text. That works fine but now I also want to change the text when you click the link.</p>
  
  <p>I got as far as this:</p>
  
  <pre><code>add(new Link("doAnything") {
      @Override
      public void onClick() {
              // change the text!
              // this.modelChanging();
              // this.detach();
      }
  });
  </code></pre>
  
  <p>I hope you can give me some easy advice - I'm really new to this :)</p>
  
  <p>Best regards
  Elias</p>