Class WicketContainerResolver
- java.lang.Object
-
- org.apache.wicket.markup.resolver.WicketContainerResolver
-
- All Implemented Interfaces:
java.io.Serializable
,IComponentResolver
,org.apache.wicket.util.io.IClusterable
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:... ... span
, but a span is not a legal tag to nest undertable
. So we can rewrite the example as following:... ... - Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTAINER
-
Constructor Summary
Constructors Constructor Description WicketContainerResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
Try to resolve a component.
-
-
-
Field Detail
-
CONTAINER
public static final java.lang.String CONTAINER
- See Also:
- Constant Field Values
-
-
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 interfaceIComponentResolver
- 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
-
-