public class AutoLabelTextResolver extends Object implements IComponentResolver
<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
<label wicket:for="...">:
<label wicket:for="myFormComponent">some other markup, optionally<wicket:label/></label>
for attribute:
<wicket:label for="myFormComponent"/>
It also supports both input and output:
<wicket:label> tag will
be replaced by the contents of that label.<wicket:label>:
<wicket:label> can contain some raw markup, like this:
<wicket:label>I will become the component's label!</wicket:label>
<wicket:message/>:
<wicket:label key="messagekey"/>
| Constructor and Description |
|---|
AutoLabelTextResolver() |
| Modifier and Type | Method and Description |
|---|---|
Component |
resolve(MarkupContainer container,
MarkupStream markupStream,
ComponentTag tag)
Try to resolve a component.
|
public static final String LABEL
public Component resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
IComponentResolverresolve in interface IComponentResolvercontainer - The container parsing its markupmarkupStream - The current markupStreamtag - The current component tag while parsing the markupnull if not foundCopyright © 2006–2014 Apache Software Foundation. All rights reserved.