Class WicketTagIdentifier
- java.lang.Object
-
- org.apache.wicket.markup.parser.AbstractMarkupFilter
-
- org.apache.wicket.markup.parser.filter.WicketTagIdentifier
-
- All Implemented Interfaces:
IMarkupFilter
public final class WicketTagIdentifier extends AbstractMarkupFilter
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
Fields Modifier and Type Field Description static String
CHILD
static String
CONTAINER_INFO
static String
EXTEND
static String
FRAGMENT
static String
MARKUP_CACHE_KEY
-
Fields inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
REQUEST_COUNTER_KEY
-
-
Constructor Summary
Constructors Constructor Description WicketTagIdentifier(MarkupResourceStream markup)
Construct.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MarkupElement
onComponentTag(ComponentTag tag)
Get the next tag from the next MarkupFilter in the chain and search for Wicket specific tags.static void
registerWellKnownTagName(String name)
Register a new well known wicket tag name (e.g.-
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getNextFilter, getRequestUniqueId, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter
-
-
-
-
Field Detail
-
CONTAINER_INFO
public static final String CONTAINER_INFO
- See Also:
- Constant Field Values
-
CHILD
public static final String CHILD
- See Also:
- Constant Field Values
-
EXTEND
public static final String EXTEND
- See Also:
- Constant Field Values
-
FRAGMENT
public static final String FRAGMENT
- See Also:
- Constant Field Values
-
MARKUP_CACHE_KEY
public static final String MARKUP_CACHE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WicketTagIdentifier
public WicketTagIdentifier(MarkupResourceStream markup)
Construct.- Parameters:
markup
- The markup as known by now
-
-
Method Detail
-
onComponentTag
protected MarkupElement onComponentTag(ComponentTag tag) throws ParseException
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:
IMarkupFilter.nextElement()
-
registerWellKnownTagName
public static void registerWellKnownTagName(String name)
Register a new well known wicket tag name (e.g. panel)- Parameters:
name
-
-
-