title: Wicket change label/textfield value
body: <p>I am trying to learn Wicket. One of the problems I encounter, is changing the values of components like a label.</p>
  
  <p>This is how I declare the label:</p>
  
  <pre><code>Label message = new Label("message", new Model&lt;String&gt;(""));
  message .setOutputMarkupId(true);
  add(message );  
  </code></pre>
  
  <p>The only solution I can find:</p>
  
  <pre><code>Label newMessage= new Label(message.getId(), "MESSAGE");
  newMessage.setOutputMarkupId(true);
  message.replaceWith(newMessage);
  target.add(newMessage);
  </code></pre>
  
  <p>Is there a better/easier way to edit the value of a Wicket label and display this new value to the user?</p>
  
  <p>Thanks!</p>