|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.markup.parser.AbstractMarkupFilter org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler
public final class HtmlHeaderSectionHandler
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())
MarkupParser
,
HtmlHeaderResolver
Field Summary | |
---|---|
static String |
HEADER_ID
The automatically assigned wicket:id to >head< tag |
Constructor Summary | |
---|---|
HtmlHeaderSectionHandler(Markup markup)
Construct. |
Method Summary | |
---|---|
protected MarkupElement |
onComponentTag(ComponentTag tag)
Invoked when a ComponentTag was found. |
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter |
---|
getMarkupResourceStream, getNextFilter, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HEADER_ID
Constructor Detail |
---|
public HtmlHeaderSectionHandler(Markup markup)
markup
- The Markup object being filled while reading the markup resourceMethod Detail |
---|
protected final MarkupElement onComponentTag(ComponentTag tag) throws ParseException
AbstractMarkupFilter
By default this method is also called for WicketTags.
onComponentTag
in class AbstractMarkupFilter
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |