/** * Render the header from the associated markup file */ @Override public void renderHead(final Component component, HtmlHeaderContainer container) { if (!(component instanceof WebMarkupContainer)) { throw new WicketRuntimeException(Classes.simpleName(component.getClass()) + " can only be associated with WebMarkupContainer."); } renderHeadFromAssociatedMarkupFile((WebMarkupContainer)component, container); }
cleanChildrenMarkup(parent); associatedMarkup = searchMarkupInTransparentResolvers(parent, markup, child); if (associatedMarkup != null) return findMarkupInAssociatedFileHeader(parent, child);
while (nextHeaderMarkup(markupStream) != -1) String headerId = getHeaderId(container, markupStream); HeaderPartContainer headerPart = getHeaderPart(container, headerId, markupStream.getMarkupFragment()); if (headerPart != null)
cleanChildrenMarkup(parent); associatedMarkup = searchMarkupInTransparentResolvers(parent, markup, child); if (associatedMarkup != null) return findMarkupInAssociatedFileHeader(parent, child);
while (nextHeaderMarkup(markupStream) != -1) String headerId = getHeaderId(container, markupStream); HeaderPartContainer headerPart = getHeaderPart(container, headerId, markupStream.getMarkupFragment()); if (headerPart != null)
/** * Render the header from the associated markup file */ @Override public void renderHead(final Component component, HtmlHeaderContainer container) { if (!(component instanceof WebMarkupContainer)) { throw new WicketRuntimeException(Classes.simpleName(component.getClass()) + " can only be associated with WebMarkupContainer."); } renderHeadFromAssociatedMarkupFile((WebMarkupContainer)component, container); }