Description
If the "contents" -element is visible=false during the first time the page is loaded, Wicket crashes
<wicket:border>
<fieldset style="padding: 0px;">
<legend>
<input type="button" wicket:id="toggle_contents_button" value="Click here to show/hide">
<span wicket:id="legend"></span>
</legend>
<span wicket:id="contents">
<wicket:body />
</span>
</fieldset>
</wicket:border>
Unexpected RuntimeException:
WicketMessage: Expected close tag for <span id="show_hide_bordera" wicket:id="show-hide-border">
[markup = file:/C:/workspaces/testspace/border-bug/target/classes/org/wicket/quickstart/HomePage.html
<html>
<head>
<title>Wicket Quickstart Archetype Homepage</title>
</head>
<body>
<strong>Wicket Quickstart Archetype Homepage</strong>
<br/><br/>
<span wicket:id="message">message will be here</span>
Show-hide -content:
<form wicket:id="form">
<span wicket:id="show-hide-border">Rendering the border crashes if its contents are hidden by default.</span>
</form>
</body>
</html>
, index = 12, current = [Raw markup]]
Root cause:
org.apache.wicket.markup.MarkupException: Expected close tag for <span id="show_hide_bordera" wicket:id="show-hide-border">
[markup = file:/C:/workspaces/testspace/border-bug/target/classes/org/wicket/quickstart/HomePage.html