Module org.apache.wicket.core
Class HtmlHeaderSectionHandler
java.lang.Object
org.apache.wicket.markup.parser.AbstractMarkupFilter
org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler
- All Implemented Interfaces:
IMarkupFilter
This is a markup inline filter.
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())
- Author:
- Juergen Donnerstag
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
The automatically assigned wicket:id to >head< tagstatic final String
Fields inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
REQUEST_COUNTER_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final MarkupElement
Invoked when a ComponentTag was found.Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getNextFilter, getRequestUniqueId, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter
-
Field Details
-
BODY
- See Also:
-
HEAD
- See Also:
-
HEADER_ID
The automatically assigned wicket:id to >head< tag- See Also:
-
HEADER_ID_ITEM
- See Also:
-
-
Constructor Details
-
HtmlHeaderSectionHandler
Construct.- Parameters:
markup
- The Markup object being filled while reading the markup resource
-
-
Method Details
-
onComponentTag
Description copied from class:AbstractMarkupFilter
Invoked when a ComponentTag was found.By default this method is also called for WicketTags.
- Specified by:
onComponentTag
in classAbstractMarkupFilter
- Returns:
- Usually the same as the tag attribute
- Throws:
ParseException
-