Class StyleAndScriptIdentifier
java.lang.Object
org.apache.wicket.markup.parser.AbstractMarkupFilter
org.apache.wicket.markup.parser.filter.StyleAndScriptIdentifier
- All Implemented Interfaces:
IMarkupFilter
An IMarkupFilter that wraps the body of all <style> elements and <script>
elements which are plain JavaScript in CDATA blocks. This allows the user application
to use unescaped XML characters without caring that those may break Wicket's XML Ajax
response.
- Author:
- Juergen Donnerstag
-
Field Summary
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.void
postProcess
(Markup markup) Called after all filters have been processed.Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getNextFilter, getRequestUniqueId, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, setNextFilter
-
Constructor Details
-
StyleAndScriptIdentifier
public StyleAndScriptIdentifier()Constructor.
-
-
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
-
postProcess
Description copied from interface:IMarkupFilter
Called after all filters have been processed.- Specified by:
postProcess
in interfaceIMarkupFilter
- Overrides:
postProcess
in classAbstractMarkupFilter
-