title: Insert Wicket value to a JavaScript function in Java
body: <p>I am writing a web app using HTML and Wicket.</p>
  
  <p>In my HTML page, I have a small alert script and I need that the wicket will insert a value to the message of the alert. My code is:</p>
  
  <h3>HTML code:</h3>
  
  <pre><code>&lt;script&gt;
     function version(){
     alert(&lt;sub wicket:id="version"&gt;);
     } 
  &lt;/script&gt;
  &lt;img class="logo" src="images/logo.png" alt="" width="68" height="21" onclick="version()"/&gt;
  </code></pre>
  
  <h3>Java:</h3>
  
  <pre><code>add(new Label("version","1.0.0");
  </code></pre>
  
  <p>But this is not working.</p>