Class WicketContainerResolver

  extended by org.apache.wicket.markup.resolver.WicketContainerResolver
All Implemented Interfaces:, IClusterable, IComponentResolver

public class WicketContainerResolver
extends java.lang.Object
implements IComponentResolver

This is a tag resolver which handles <wicket:container> Sometimes adding components in certain ways may lead to output of invalid markup. For example, lets pretend we output table rows two at a time using a repeater. The markup would look something like this:

Notice that we had to attach the repeater to a component tag - in this case a span, but a span is not a legal tag to nest under table. So we can rewrite the example as following:
The above is valid markup because wicket namespaced tags are allowed anywhere

Igor Vaynberg (ivaynberg)
See Also:
Serialized Form

Field Summary
static java.lang.String CONTAINER
Constructor Summary
Method Summary
 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


public static final java.lang.String CONTAINER
See Also:
Constant Field Values
Constructor Detail


public WicketContainerResolver()
Method Detail


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
container - The container parsing its markup
markupStream - The current markupStream
tag - The current component tag while parsing the markup
component or null if not found

Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.