Description
When the hidden child becomes visible again, it fails to appear on the page. The same thing works correctly with the wicket:enclosure tag.
Example code:
public class TestPage extends WebPage {
public TestPage() {
final Label l = new Label("msg", "hi");
add(l);
add(new Link<Void>("b") {
private static final long serialVersionUID = 1L;
@Override
public void onClick()
});
}
}
TestPage.html:
<html xmlns:wicket>
<body>
<div wicket:enclosure="msg"><span wicket:id="msg"></span></div>
<input type="button" value="Toggle" wicket:id="b">
</body>
</html>