org.apache.wicket.markup.renderStrategy
Class ChildFirstHeaderRenderStrategy
java.lang.Object
org.apache.wicket.markup.renderStrategy.AbstractHeaderRenderStrategy
org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy
- All Implemented Interfaces:
- IHeaderRenderStrategy
public class ChildFirstHeaderRenderStrategy
- extends AbstractHeaderRenderStrategy
This a header render strategy implements a child->parent->root sequence, which is inverse to how
it was until Wicket 1.5. It now allows parent containers to replace child contributions, since
their contribution is added to the markup after the child ones (see
WICKET-2693).
Please note that irrespective of the render strategy, if the same header content (e.g. CSS file)
gets added twice to the header, only the first will be rendered and the 2nd will be skipped.
- Author:
- Juergen Donnerstag
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChildFirstHeaderRenderStrategy
public ChildFirstHeaderRenderStrategy()
- Construct.
renderHeader
public void renderHeader(HtmlHeaderContainer headerContainer,
Component rootComponent)
- Description copied from interface:
IHeaderRenderStrategy
- Implements the render strategy
- Specified by:
renderHeader
in interface IHeaderRenderStrategy
- Overrides:
renderHeader
in class AbstractHeaderRenderStrategy
- Parameters:
headerContainer
- The HeaderContainer associated to the responserootComponent
- The root component (e.g. Page) to start the render process
renderChildHeaders
protected void renderChildHeaders(HtmlHeaderContainer headerContainer,
Component rootComponent)
- Render the child hierarchy headers.
- Specified by:
renderChildHeaders
in class AbstractHeaderRenderStrategy
- Parameters:
headerContainer
- rootComponent
-
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.