Hi,
i encountered that when working with forms together with custom FieldFactories, you need to code:
setFormFieldFactory(new MyCustomFieldFactory());
setItemDataSource(item);
if you code:
setItemDataSource(item);
setFormFieldFactory(new MyCustomFieldFactory());
things wont work. (DefaultFieldFactory will be used and people start wondering what happened with MyCustomFieldFactory).
IMO from an API standpoint, its not a good decission to mandate a method call order. But if you cant circumvent it, there should be at least proper documentation and something like a IllegalStateException on calling setFormFieldFactory() after setItemDataSource().
Interessed to hear oppinions on that.
Marc