title: Dynamic HTML attributes in Wicket
body: <p>I know there are several ways to do this, but I'm looking for the best way (I'm new to Wicket).</p>
  
  <p>In the HTML code below, I've marked 2 areas where I need to replace some dummy text.  The text in question is the <code>{APP_TITLE}</code> and <code>{PAGE_TITLE}</code>.  I just want to replace them with simple Strings.</p>
  
  <p><strong>QUESTION</strong></p>
  
  <p>In the first <code>&lt;div&gt;</code>, what is the best way to replace those values without loosing the contents within the DIV and the attributes that currently define the div (and whatever attributes are added in the future)?</p>
  
  <pre><code>&lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;!-- Replace here --&gt;
      &lt;title&gt;{APP_TITLE} - {PAGE_TITLE}&lt;/title&gt; 
  &lt;/head&gt;
  &lt;body&gt;
      &lt;!-- Replace here --&gt;
      &lt;div class="corpAppTemplate" corp:app="{APP_TITLE}" corp:title="{PAGE_TITLE}"&gt;
          &lt;ul class="corpAppMenu"  wicket:id="MenuList"&gt;
          &lt;/ul&gt;
          &lt;span wicket:id="UserID"&gt;UserID&lt;/span&gt;
                 &lt;wicket:child/&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>