public class HtmlHeaderResolver extends Object implements IComponentResolver
HtmlHeaderSectionHandler and WicketTagIdentifier).
Provided the current tag is a <head>, a HtmlHeaderContainer component is created,
(auto) added to the component hierarchy and immediately rendered. Please see the javadoc for
HtmlHeaderContainer on how it treats the tag.
In case of <wicket:head> a simple TransparentWebMarkupContainer handles the tag.
| Modifier and Type | Field and Description |
|---|---|
static String |
HEAD |
static String |
HEADER_ITEMS |
| Constructor and Description |
|---|
HtmlHeaderResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected HtmlHeaderContainer |
newHtmlHeaderContainer(String id)
Deprecated.
Use #newHtmlHeaderContainer(String, ComponentTag) instead
|
protected HtmlHeaderContainer |
newHtmlHeaderContainer(String id,
ComponentTag tag)
Return a new HtmlHeaderContainer
|
Component |
resolve(MarkupContainer container,
MarkupStream markupStream,
ComponentTag tag)
Try to resolve a component.
|
public static final String HEAD
public static final String HEADER_ITEMS
public Component resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
IComponentResolverresolve in interface IComponentResolvercontainer - The container parsing its markupmarkupStream - The current markupStreamtag - The current component tag while parsing the markupnull if not found@Deprecated protected HtmlHeaderContainer newHtmlHeaderContainer(String id)
id - protected HtmlHeaderContainer newHtmlHeaderContainer(String id, ComponentTag tag)
id - Copyright © 2006–2021 Apache Software Foundation. All rights reserved.