PROBLEM:
When ListItemModel is wrapped into CompoundPropertyModel (that is used as
default model of Form),
then Form model-object is never updated -> so old data are saved, without
any changes.


EXAMPLE OF PROBLEM:
Example of problem: (data in form object are NOT updated after from
submission)

    ListItemModel listItemModel = ...coming from ListView
    CompoundPropertyModel<Category> compoundModel = new
CompoundPropertyModel<Category>(listItemModel);


HOW PROBLEM WAS FIXED:
Fix was to extract model-object from ListItemModel and rewrap it into
CompoundPropertyModel.

    ListItemModel listItemModel = ...coming from ListView
    CompoundPropertyModel<Category> compoundModel = new
CompoundPropertyModel<Category>(listItemModel.getObject());


QUESTION
I suppose, that core of the problem is, that ListItemModel does not
implement IChainingModel, so it cannot be passed to another model... but I
am not sure, if I understand that correctly and identified the real core
problem.

Could you please confirm this, or provide some alternative explanation, why
I cannot ListItemModel to the CompoundPropertyModel (into its constructor) ?


Thank you for your help and explanation.

Reply via email to