ComponentBackground | componentJavadoc=Border
A Border is a reusable component that holds markup and other components. Is special type of Panel with the ability to wrap code with a header and a footer specified by the Border component.
You can use Markup inheritance with Borders too.
Borders can be used to create dynamic markup hierarchies.
That's for your reusable panel, which you can now use anywhere like:
this will generate the following HTML output:
In other words, the body of the myBorder component is substituted into the border's associated markup at the position indicated by the <wicket:body> tag.
Regarding <wicket:body/> you have two options. Either use <wicket:body/> (open-close tag) which will automatically be expanded to <wicket:body>body content</wicket:body> or use <wicket:body>preview region</wicket:body> in your border's markup. The preview region (everything in between the open and close tag) will automatically be removed.