{
private static final long serialVersionUID = 1L;
public IConverter getConverter(Class type)
{
IConverter c = AjaxEditableChoiceLabel.this.getConverter(type);
return c != null ? c : super.getConverter(type);
}
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
{
String displayValue = getModelObjectAsString();
if (renderer != null)
{
Object displayObject = renderer.getDisplayValue(getModelObject());
Class objectClass = (displayObject == null ? null : displayObject.getClass());
if (objectClass != null && objectClass != String.class)
{
final IConverter converter = getConverter(objectClass);
displayValue = converter.convertToString(displayObject, getLocale());
}
}
if (Strings.isEmpty(displayValue))
{