org.apache.wicket.markup.html.form
Class AutoLabelTextResolver
java.lang.Object
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
- together with
<label wicket:for="...">:
<label wicket:for="myFormComponent">some other markup, optionally<wicket:label/></label>
-
standalone, with a
for attribute:
<wicket:label for="myFormComponent"/>
It also supports both input and output:
- If the FormComponent has a label model, the
<wicket:label> tag will
be replaced by the contents of that label.
- If the FormComponent's label model is null, it can be picked up from
<wicket:label>:
- Author:
- Carl-Eric Menzel , igor
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoLabelTextResolver
public AutoLabelTextResolver()
resolve
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
- Parameters:
container - The container parsing its markupmarkupStream - The current markupStreamtag - The current component tag while parsing the markup
- Returns:
- component or
null if not found
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.