Class HtmlHeaderResolver
- java.lang.Object
-
- org.apache.wicket.markup.resolver.HtmlHeaderResolver
-
- All Implemented Interfaces:
Serializable
,IComponentResolver
,IClusterable
public class HtmlHeaderResolver extends Object implements IComponentResolver
This is a tag resolver which handles <head> and <wicket:head>tags. It must be registered (with the application) and assumes that a ComponentTag respectively a WicketTag has already been created (seeHtmlHeaderSectionHandler
andWicketTagIdentifier
).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 forHtmlHeaderContainer
on how it treats the tag.In case of <wicket:head> a simple
TransparentWebMarkupContainer
handles the tag.- Author:
- Juergen Donnerstag
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
HEAD
static String
HEADER_ITEMS
-
Constructor Summary
Constructors Constructor Description HtmlHeaderResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HtmlHeaderContainer
newHtmlHeaderContainer(String id, ComponentTag tag)
Return a new HtmlHeaderContainerComponent
resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
Try to resolve a component.
-
-
-
Field Detail
-
HEAD
public static final String HEAD
- See Also:
- Constant Field Values
-
HEADER_ITEMS
public static final String HEADER_ITEMS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HtmlHeaderResolver
public HtmlHeaderResolver()
-
-
Method Detail
-
resolve
public Component resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
Description copied from interface:IComponentResolver
Try to resolve a component.- Specified by:
resolve
in interfaceIComponentResolver
- Parameters:
container
- The container parsing its markupmarkupStream
- The current markupStreamtag
- The current component tag while parsing the markup- Returns:
- component or
null
if not found
-
newHtmlHeaderContainer
protected HtmlHeaderContainer newHtmlHeaderContainer(String id, ComponentTag tag)
Return a new HtmlHeaderContainer- Parameters:
id
-- Returns:
- HtmlHeaderContainer
-
-