org.apache.wicket.markup.resolver
Class HtmlHeaderResolver

java.lang.Object
  extended by org.apache.wicket.markup.resolver.HtmlHeaderResolver
All Implemented Interfaces:
Serializable, IClusterable, IComponentResolver

public class HtmlHeaderResolver
extends Object
implements IComponentResolver

This is a tag resolver which handles <head> and <wicket:head>tags. It must be registered (with the application) and assumes that a ComponentTag respectively a WicketTag has already been created (see HtmlHeaderSectionHandler and WicketTagIdentifier).

Provided the current tag is a <head>, a HtmlHeaderContainer component is created, (auto) added to the component hierarchy and immediately rendered. Please see the javadoc for HtmlHeaderContainer on how it treats the tag.

In case of <wicket:head> a simple WebMarkupContainer handles the tag.

Author:
Juergen Donnerstag
See Also:
Serialized Form

Field Summary
static String HEAD
           
 
Constructor Summary
HtmlHeaderResolver()
           
 
Method Summary
protected  HtmlHeaderContainer newHtmlHeaderContainer(String id)
          Return a new HtmlHeaderContainer
 Component resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
          Try to resolve a component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEAD

public static final String HEAD
See Also:
Constant Field Values
Constructor Detail

HtmlHeaderResolver

public HtmlHeaderResolver()
Method Detail

resolve

public Component resolve(MarkupContainer container,
                         MarkupStream markupStream,
                         ComponentTag tag)
Description copied from interface: IComponentResolver
Try to resolve a component.

Specified by:
resolve in interface IComponentResolver
Parameters:
container - The container parsing its markup
markupStream - The current markupStream
tag - The current component tag while parsing the markup
Returns:
component or null if not found

newHtmlHeaderContainer

protected HtmlHeaderContainer newHtmlHeaderContainer(String id)
Return a new HtmlHeaderContainer

Parameters:
id -
Returns:
HtmlHeaderContainer


Copyright © 2006–2014 Apache Software Foundation. All rights reserved.