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

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

public class OpenCloseTagExpander
extends AbstractMarkupFilter

MarkupFilter that expands certain open-close tag as separate open and close tags. Firefox, unless it gets text/xml mime type, treats these open-close tags as open tags which results in corrupted DOM. This happens even with xhtml doctype.

Author:
Matej Knopp

Constructor Summary
OpenCloseTagExpander()
           
 
Method Summary
 MarkupElement nextTag()
          Get the next MarkupElement from the parent MarkupFilter and handle it if the specific filter criteria are met.
 
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getParent, nextComponentTag, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenCloseTagExpander

public OpenCloseTagExpander()
Method Detail

nextTag

public MarkupElement nextTag()
                      throws java.text.ParseException
Description copied from interface: IMarkupFilter
Get the next MarkupElement from the parent MarkupFilter and handle it if the specific filter criteria are met. Depending on the filter, it may return the MarkupElement unchanged, modified or remove it by asking the parent handler for the next tag.

Returns:
Return the next eligible MarkupElement
Throws:
java.text.ParseException


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.