org.apache.wicket.markup.html.form
Class AutoLabelTextResolver

java.lang.Object
  extended by org.apache.wicket.markup.html.form.AutoLabelTextResolver
All Implemented Interfaces:
Serializable, IClusterable, IComponentResolver

public class AutoLabelTextResolver
extends Object
implements IComponentResolver

Resolver that provides the <wicket:label> tag, which will output a FormComponent's label without requiring a manual extra component such as Label or FormComponentLabel. <wicket:label> can be used

It also supports both input and output:

Author:
Carl-Eric Menzel , igor
See Also:
Serialized Form

Constructor Summary
AutoLabelTextResolver()
           
 
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

AutoLabelTextResolver

public AutoLabelTextResolver()
Method Detail

resolve

public 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 markup
markupStream - The current markupStream
tag - The current component tag while parsing the markup
Returns:
True if component-id was handled by the resolver, false otherwise.


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.