<html xmlns:wicket="http://wicket.apache.org">
<wicket:head>
    <script type="text/javascript" src="prototype.js"></script>
    <title>Wicket Examples - Prototype.js / component render</title>
</wicket:head>
<body>
    <wicket:extend>
    <p>Counting link using Ajax: <a href="#" wicket:id="link">Click me!</a></p>

    <!-- the wicket component is enclosed in a span tag with a separate markup ID attribute -->
    <!-- because Wicket returns the whole <span wicket:id="counter>XYZ</span> markup. The   -->
    <!-- updater only replaces the contents of the tags, not the tags itself. -->

    <p>Link was clicked <span id="counter"><span wicket:id="counter">-100</span></span> times.</p>
</wicket:extend>
</body>
</html>