I am writing a web app using HTML and Wicket.
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:
HTML code:
<script>
function version(){
alert(<sub wicket:id="version">);
}
</script>
<img class="logo" src="images/logo.png" alt="" width="68" height="21" onclick="version()"/>
Java:
add(new Label("version","1.0.0");
But this is not working.