org.apache.wicket.markup.resolver
Class WicketContainerResolver
java.lang.Object
org.apache.wicket.markup.resolver.WicketContainerResolver
- All Implemented Interfaces:
- Serializable, IClusterable, IComponentResolver
public class WicketContainerResolver
- extends 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
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WicketContainerResolver
public WicketContainerResolver()
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-2011 Apache Software Foundation. All Rights Reserved.