if (hasColumn)
{
InputControl control = helper.getInputControl();
InputControl.ValueInfo vi = helper.getValueInfo(FacesContext.getCurrentInstance());
// render value
StringResponseWriter srw = new StringResponseWriter();
try
{
control.renderValue(vi, srw);
}
catch (IOException e)
{ // Error rendering value
log.error("Failed to render value for "+vi.getColumn().getName()+" error is:"+e.getMessage(), e);
}
return srw.toString();
}
else
{ // An ordinary link
Object value = getValue();
return value;