org.apache.wicket.markup.resolver
Class AutoComponentResolver
java.lang.Object
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.
- Author:
- Juergen Donnerstag
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPONENT
public static final String COMPONENT
- See Also:
- Constant Field Values
AutoComponentResolver
public AutoComponentResolver()
resolve
public final Component 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
- Parameters:
container
- The container parsing its markupmarkupStream
- The current markupStreamtag
- The current component tag while parsing the markup
- Returns:
- null, if not found
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.