java.lang.Object
org.apache.wicket.markup.resolver.HtmlHeaderResolver
- All Implemented Interfaces:
Serializable
,IComponentResolver
,IClusterable
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 (see
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.
- Author:
- Juergen Donnerstag
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected HtmlHeaderContainer
newHtmlHeaderContainer
(String id, ComponentTag tag) Return a new HtmlHeaderContainerresolve
(MarkupContainer container, MarkupStream markupStream, ComponentTag tag) Try to resolve a component.
-
Field Details
-
HEAD
- See Also:
-
HEADER_ITEMS
- See Also:
-
-
Constructor Details
-
HtmlHeaderResolver
public HtmlHeaderResolver()
-
-
Method Details
-
resolve
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
Return a new HtmlHeaderContainer- Parameters:
id
-- Returns:
- HtmlHeaderContainer
-