Class ParentFirstHeaderRenderStrategy
- java.lang.Object
-
- org.apache.wicket.markup.renderStrategy.AbstractHeaderRenderStrategy
-
- org.apache.wicket.markup.renderStrategy.ParentFirstHeaderRenderStrategy
-
- All Implemented Interfaces:
IHeaderRenderStrategy
public class ParentFirstHeaderRenderStrategy extends AbstractHeaderRenderStrategy
This has been Wicket's default header render strategy before WICKET 1.5 which usesMarkupContainer.visitChildren(org.apache.wicket.util.visit.IVisitor)
to traverse the hierarchy to render the children headers. Since child contributions are added to the markup after the parent contributions, children may replace / modify existing settings. Which is not good. Instead the parent (container) should be in control (see WICKET-2693).- Author:
- Juergen Donnerstag
-
-
Constructor Summary
Constructors Constructor Description ParentFirstHeaderRenderStrategy()
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
renderChildHeaders(HtmlHeaderContainer headerContainer, Component rootComponent)
Render the child hierarchy headers.-
Methods inherited from class org.apache.wicket.markup.renderStrategy.AbstractHeaderRenderStrategy
get, renderApplicationLevelHeaders, renderHeader, renderInlineEnclosure, renderRootComponent
-
-
-
-
Constructor Detail
-
ParentFirstHeaderRenderStrategy
public ParentFirstHeaderRenderStrategy()
Construct.
-
-
Method Detail
-
renderChildHeaders
protected void renderChildHeaders(HtmlHeaderContainer headerContainer, Component rootComponent)
Description copied from class:AbstractHeaderRenderStrategy
Render the child hierarchy headers.- Specified by:
renderChildHeaders
in classAbstractHeaderRenderStrategy
-
-