ChangeApplier has no convenient way to add items to an array in a model

Description

In cases where a model includes an array of some smaller objects, the ChangeApplier offers no convenient way to add several more of these smaller objects to that array all in one go. For example, if the form of the model includes

If I wish to add three more 'thung's to 'things', I must fire three separate requests for a change, using the fully qualified EL path into 'things' i.e. using knowledge of how many 'thung's there already are:

It would be nice to be able to do it all in one request, so that only one modelChanged event is fired.

Environment

None

Activity

Show:

Antranig Basman October 30, 2014 at 10:16 PM

In time, the ChangeApplier will be extended to support custom array insertion events as well as fixed to allow the DELETE operation to remove an array element. See IRC discussion in #fluid-work at https://botbot.me/freenode/fluid-work/2014-09-17/?msg=21823956&page=2

Anastasia Cheetham February 25, 2010 at 8:27 PM

Alternatively, I could create a copy of the existing 'things', add my 'thung's to it, then request a single change on the whole thing... That doesn't seem entirely optimal either.

Details

Assignee

Reporter

Components

Affects versions

Priority

Created February 25, 2010 at 8:23 PM
Updated April 5, 2018 at 8:16 AM