Module org.apache.wicket.core
Class WicketTagIdentifier
java.lang.Object
org.apache.wicket.markup.parser.AbstractMarkupFilter
org.apache.wicket.markup.parser.filter.WicketTagIdentifier
- All Implemented Interfaces:
IMarkupFilter
This is a markup inline filter. It identifies xml tags which have a special meaning for Wicket.
There are two type of tags which have a special meaning for Wicket.
- All tags with Wicket namespace, e.g. <wicket:remove>
- All tags with an attribute like wicket:id="myLabel"
- Author:
- Juergen Donnerstag
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
REQUEST_COUNTER_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MarkupElement
Get the next tag from the next MarkupFilter in the chain and search for Wicket specific tags.static void
Register a new well known wicket tag name (e.g. panel)Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getNextFilter, getRequestUniqueId, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter
-
Field Details
-
CONTAINER_INFO
- See Also:
-
CHILD
- See Also:
-
EXTEND
- See Also:
-
FRAGMENT
- See Also:
-
MARKUP_CACHE_KEY
- See Also:
-
-
Constructor Details
-
WicketTagIdentifier
Construct.- Parameters:
markup
- The markup as known by now
-
-
Method Details
-
onComponentTag
Get the next tag from the next MarkupFilter in the chain and search for Wicket specific tags.Note: The xml parser - the next MarkupFilter in the chain - returns XmlTags which are a subclass of MarkupElement. The implementation of this filter will return either ComponentTag or WicketTag. Both are subclasses of MarkupElement and both maintain a reference to the XmlTag. But no XmlTag is returned.
- Specified by:
onComponentTag
in classAbstractMarkupFilter
- Returns:
- The next tag from markup to be processed. If
null
then no more tags are available - Throws:
ParseException
- See Also:
-
registerWellKnownTagName
Register a new well known wicket tag name (e.g. panel)- Parameters:
name
-
-