wicket.markup.resolver
Class AutoComponentResolver
java.lang.Object
wicket.markup.resolver.AutoComponentResolver
- All Implemented Interfaces:
- java.io.Serializable, IComponentResolver
public final class AutoComponentResolver
- extends java.lang.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 |
AutoComponentResolver
public AutoComponentResolver()
resolve
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
- 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-2007 Wicket developers. All Rights Reserved.