Class FragmentResolver

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

public class FragmentResolver
extends java.lang.Object
implements IComponentResolver

Usually you either have a markup file or a xml tag with wicket:id="myComponent" to associate markup with a component. However in some rare cases, especially when working with small panels it is a bit awkward to maintain tiny pieces of markup in plenty of panel markup files. Use cases are for example list views where list items are different depending on a state.

Inline panels provide a means to maintain the panels tiny piece of markup in the parents markup file. During the render process, when Wicket iterates over the markup file, the markup fragment must be ignored. It is only indirectly referenced by component.

Juergen Donnerstag
See Also:
Serialized Form

Field Summary
static java.lang.String FRAGMENT
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 FRAGMENT
See Also:
Constant Field Values
Constructor Detail


public FragmentResolver()
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.