Class 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. In addition, some tags are required open-body-close for Wicket to work properly.
    Author:
    Juergen Donnerstag, Matej Knopp
    • Constructor Detail

      • OpenCloseTagExpander

        public OpenCloseTagExpander()
    • Method Detail

      • onFound

        protected boolean onFound​(ComponentTag tag)
        Can be subclassed to do other things. E.g. instead of changing it you may simply want to log a warning.
        Parameters:
        tag -
        Returns:
        Must be true to automatically create and add a close tag.
      • contains

        protected boolean contains​(String name)
        Allows subclasses to easily expand the list of tag which needs to be expanded.
        Parameters:
        name -
        Returns:
        true, if needs expansion