Description
The attached example is working in wicket 7.0.0, but broken since 7.1.0 and also in 7.2.0-SNAPSHOT, with a different error message.
The attached code is already shrinked to a minimum to reproduce the problem.
EnclosureTest.html
<div wicket:enclosure="outer"> <div wicket:id="outer"> outer begin <div wicket:enclosure="middle"> <div wicket:enclosure="inner"> <div wicket:id="inner">inner</div> </div> <div wicket:id="middle">middle</div> </div> outer end </div> </div>
EnclosureTest.java
public EnclosureTest(String id) { super(id); WebMarkupContainer outer = new WebMarkupContainer("outer"); outer.add(new WebMarkupContainer("inner")); outer.add(new WebMarkupContainer("middle")); add(outer); }