public final class HtmlHeaderSectionHandler extends AbstractMarkupFilter
It assumes that WicketTagIdentifier
has been called first and search for a <head> tag (note: not wicket:head). Provided the markup contains a
<body> tag it will automatically prepend a <head> tag if missing.
Additionally this filter handles <wicket:header-items/>. If there is such tag then it is marked
as the one that should be used as HtmlHeaderContainer, by
setting its id to "_header_".
Note: This handler is only relevant for Pages (see MarkupParser.newFilterChain())
MarkupParser,
HtmlHeaderResolver| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_ID
The automatically assigned wicket:id to >head< tag
|
| Constructor and Description |
|---|
HtmlHeaderSectionHandler(Markup markup)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected MarkupElement |
onComponentTag(ComponentTag tag)
Invoked when a ComponentTag was found.
|
getMarkupResourceStream, getNextFilter, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilterpublic static final String HEADER_ID
public HtmlHeaderSectionHandler(Markup markup)
markup - The Markup object being filled while reading the markup resourceprotected final MarkupElement onComponentTag(ComponentTag tag) throws ParseException
AbstractMarkupFilterBy default this method is also called for WicketTags.
onComponentTag in class AbstractMarkupFilterParseExceptionCopyright © 2006–2014 Apache Software Foundation. All rights reserved.