Class HtmlHeaderSectionHandler

  • All Implemented Interfaces:
    IMarkupFilter

    public final class HtmlHeaderSectionHandler
    extends AbstractMarkupFilter
    This is a markup inline filter.

    It assumes that WicketTagIdentifier has been called first and search for a <head> tag (note: not wicket:head). Provided the markup contains a <body> tag it will automatically prepend a <head> tag if missing.

    Additionally this filter handles <wicket:header-items/>. If there is such tag then it is marked as the one that should be used as HtmlHeaderContainer, by setting its id to "_header_".

    Note: This handler is only relevant for Pages (see MarkupParser.newFilterChain())

    Author:
    Juergen Donnerstag
    See Also:
    MarkupParser, HtmlHeaderResolver
    • Constructor Detail

      • HtmlHeaderSectionHandler

        public HtmlHeaderSectionHandler​(Markup markup)
        Construct.
        Parameters:
        markup - The Markup object being filled while reading the markup resource
    • Method Detail

      • onComponentTag

        protected final MarkupElement onComponentTag​(ComponentTag tag)
                                              throws java.text.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:
        java.text.ParseException