How to extend DefaultFieldFactory

Hi there,

I want to override the createFieldByPropertyType() method in DefaultFieldFactory. I would like to introduce those classes (fields) I made for some of the other data types. So that the createField method could init the new fields instead of TextField. Any idea?

Br,
Xuan

You just need to implement FormFieldFactory and in the createField() method you call

 Field field = DefaultFieldFactory.get().createField(item, propertyId, uiContext);

because DefaultFieldFactory is singleton.