// It is <wicket:head>. Because they do not provide any
// additional functionality they are merely a means of surrounding relevant
// markup. Thus we simply create a WebMarkupContainer to handle
// the tag.
WebMarkupContainer header2 = new TransparentWebMarkupContainer(
HtmlHeaderSectionHandler.HEADER_ID);
header2.setRenderBodyOnly(true);
header.add(header2);
return header;
}
else if (container instanceof HtmlHeaderContainer)
{
// It is <wicket:head>. Because they do not provide any
// additional functionality there are merely a means of surrounding
// relevant markup. Thus we simply create a WebMarkupContainer to handle
// the tag.
WebMarkupContainer header = new TransparentWebMarkupContainer(
HtmlHeaderSectionHandler.HEADER_ID);
header.setRenderBodyOnly(true);
return header;
}
final Page page = container.getPage();
final String pageClassName = (page != null) ? page.getClass().getName() : "unknown";