org.apache.wicket.markup.resolver
Class HtmlHeaderResolver
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HEAD
public static final String HEAD
- See Also:
- Constant Field Values
HtmlHeaderResolver
public HtmlHeaderResolver()
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 markupmarkupStream
- The current markupStreamtag
- 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-2013 Apache Software Foundation. All Rights Reserved.