org.apache.wicket.markup.resolver
Class HtmlHeaderResolver
java.lang.Object
org.apache.wicket.markup.resolver.HtmlHeaderResolver
- All Implemented Interfaces:
- java.io.Serializable, IClusterable, IComponentResolver
public class HtmlHeaderResolver
- extends java.lang.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 hierarchie 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 |
HtmlHeaderResolver
public HtmlHeaderResolver()
resolve
public boolean resolve(MarkupContainer container,
MarkupStream markupStream,
ComponentTag tag)
- Try to resolve the tag, then create a component, add it to the container and render it.
- 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:
- true, if componentId was handle by the resolver. False, otherwise
- See Also:
IComponentResolver.resolve(MarkupContainer,
MarkupStream, ComponentTag)
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.