I have written datautility extending AbstractDataUtility but textarea is not visible in table builder.Code is as follows.
public class AttributeTextAreaDataUtility extends AbstractAttributeDataUtility {
public Object getDataValue(String component_id, Object datum, ModelContext mc) throws WTException
{
super.getDataValue(component_id, datum, mc);
TextArea textarea = new TextArea();
TextArea textArea = GuiComponentUtil.createTextArea(1, 2, 3 );
//textArea.setColumnName(AttributeDataUtilityHelper.getColumnName(component_id, datum, mc));
textarea.setValue(getAttributeDisplayValue(component_id, component_id, datum, mc));
textarea.setReadOnly(true);
textarea.setWidth(40);
textarea.setHeight(5);
//textarea.setName(component_id);
return textarea;
}
private static String getAttributeDisplayValue(String attributeName,String componentId, Object datum, ModelContext mc)
throws WTException
{
Object raw_val = UtilityHelper.getRawValue(attributeName, datum, mc);
String value = UtilityHelper.getStringValue(raw_val, componentId,datum, mc);
return value;
}
}