Class AutoComponentResolver

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

public final class AutoComponentResolver
extends Object
implements IComponentResolver

<wicket:component class="myApp.MyTable" key=value> tags may be used to add Wicket components (e.g. a specialized PageableListView) and pass parameters (e.g. the number of rows per list view page). The object is automatically instantiated, initialized and added to the page's component hierarchy.

Note: The component must have a constructor with a single String parameter: the component name.

Note: The component must provide a setter for each key/value attribute provided.

Juergen Donnerstag
See Also:
Serialized Form

Constructor Summary
Method Summary
 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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public AutoComponentResolver()
Method Detail


public final boolean resolve(MarkupContainer container,
                             MarkupStream markupStream,
                             ComponentTag tag)
Description copied from interface: IComponentResolver
Try to resolve the tag, then create a component, add it to the container and render it.

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
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.