Hi Mario,
- If you have a FooPage, the html generator will generate a FooPage.html with wicket:child as the tag under body.
- If you have a FooPanel, the html generator will generate a FooPanel.html with wicket:panel as the tag under body.
You can also have both and the html generator should work for both individually, rendering the same stuff internally. Though the rendering is also dependent on the new GeneratedBinding(this)... which could have some binding interceptors. Or some other component modifications you implement in the Page/Panel class individually.
Since you have public Bar getBar() {}, then in both cases Bar will be treated as a container type and thus its nested properties will be generated individually into the FooPage.html and FooPanel.html.
This does not care what you do with Bar itself, since it can also have a BarPage, BarPanel. If you want to render Bar as a Panel instead of a nested container type inside Foo. Then use:
@BeanPathEndPoint
public Bar getBar() {}
And additionally define a binding generator interceptor to instantiate the panel instead of the default text field as the desired component.
Best regards,
Edwin