Why not just use a repeater for that:
<html xmls:wicket....>
<wicket:panel>
This is my panel <br />
<div wicket:id="subComponents"></div>
</wicket:panel>
</html>
class MyPanel extends Panel {
RepeatingView repeater;
MyPanel() {
add(repeater = new RepeatingView("subComponents");
}
public void addSub(Component component) {
repeater.add(component);
}
}