Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1813

<fb:identity> doesn't work with nested repeaters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8
    • 2.1.10
    • Blocks: Forms
    • None
    • Normal

    Description

      I have a repeater where each row contains a different repeater (concretely a repeater of "tabs" where each row contains a repeater of "modules"). I used the tasktree example (http://cocoon.zones.apache.org/demos/21branch/samples/blocks/forms/do-taskTree.flow) for a sample structure to get me started.

      I can see that the fb:identity bindings for both the outer and inner repeaters are being loaded successfully. However reordering inner or outer repeater elements does not result in any of the collection items being reordered in the underlying object model.

      If i remove my fb:identity bindings, then new objects are successfully created each time the form is saved (and the old ones are discarded). This is not ideal, as the objects are persistent (mapped using Hibernate). I have a work-around, but it's not pretty.

      The use of repeaters inside repeaters is pretty rare, so I think I just stumbled into a dusty corner. I'd be happy to collaborate on a fix.

      Regards,
      Eric

      Attachments

        Activity

          People

            Unassigned Unassigned
            eric.meyer Eric Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: