}
}
// Allows user to add attributes to the <input..> tag
{
IValueMap attrs = getAdditionalAttributes(index, choice);
if (attrs != null)
{
for (Map.Entry<String, Object> attr : attrs.entrySet())
{
buffer.append(' ')
.append(attr.getKey())
.append("=\"")
.append(attr.getValue())
.append('"');
}
}
}
if (getApplication().getDebugSettings().isOutputComponentPath())
{
CharSequence path = getPageRelativePath();
path = Strings.replaceAll(path, "_", "__");
path = Strings.replaceAll(path, ":", "_");
buffer.append(" wicketpath=\"")
.append(path)
.append("_input_")
.append(index)
.append('"');
}
buffer.append("/>");
// Add label for radio button
String display = label;
if (localizeDisplayValues())
{
display = getLocalizer().getString(label, this, label);
}
CharSequence escaped = display;
if (getEscapeModelStrings())
{
escaped = Strings.escapeMarkup(display);
}
buffer.append("<label for=\"")
.append(idAttr)
.append('"');
// Allows user to add attributes to the <label..> tag
{
IValueMap labelAttrs = getAdditionalAttributesForLabel(index, choice);
if (labelAttrs != null)
{
for (Map.Entry<String, Object> attr : labelAttrs.entrySet())
{
buffer.append(' ')
.append(attr.getKey())
.append("=\"")
.append(attr.getValue())