};
public Canvas getViewPanel() {
// Start out by registering a new type in the AttributeFormFieldRegistry. When an attribute is configured with
// the 'formInputType' equal to "myTextAre", then this type will be used (a text area):
AttributeFormFieldRegistry.registerCustomFormItem("myTextArea", new DataSourceFieldFactory() {
public DataSourceField create() {
return new DataSourceTextField();
}
}, new FormItemFactory() {