org.apache.wicket.markup.parser.filter
Class StyleAndScriptIdentifier

java.lang.Object
  extended by org.apache.wicket.markup.parser.AbstractMarkupFilter
      extended by org.apache.wicket.markup.parser.filter.StyleAndScriptIdentifier
All Implemented Interfaces:
IMarkupFilter

public final class StyleAndScriptIdentifier
extends AbstractMarkupFilter

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

Constructor Summary
StyleAndScriptIdentifier()
          Constructor.
 
Method Summary
protected  MarkupElement onComponentTag(ComponentTag tag)
          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, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, setNextFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleAndScriptIdentifier

public StyleAndScriptIdentifier()
Constructor.

Method Detail

onComponentTag

protected final MarkupElement onComponentTag(ComponentTag tag)
                                      throws ParseException
Description copied from class: AbstractMarkupFilter
Invoked when a ComponentTag was found.

By default this method is also called for WicketTags.

Specified by:
onComponentTag in class AbstractMarkupFilter
Returns:
Usually the same as the tag attribute
Throws:
ParseException

postProcess

public void postProcess(Markup markup)
Description copied from interface: IMarkupFilter
Called after all filters have been processed.

Specified by:
postProcess in interface IMarkupFilter
Overrides:
postProcess in class AbstractMarkupFilter


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.