For debug reasons, and on a whim, I'd like to include certain information in a Wicket page's HTML output that is enclosed in HTML comments.
The output would be something like...
<!--
<div wicket:id="foo"> 1234 </div>
-->
...where "1234" is some interesting, dynamically created piece of information.
I have tried, to no avail:
<!-- <div wicket:id="foo"></div> -->→ Wicket complains that element with id "foo" is missing from the HTML page- enclose in
<wicket:remove>→ such sections cannot contain elements withwicket:id label.setVisible(false)→ Wicket doesn't output the label at allnew Label("foo", "<!-- " + foo + " -->")→ the<and>get escaped
So, can you do this with Wicket (easily), or should I just forget about it?