Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-7457

Implement a simple, datasource agnostic, multiValueField

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • 6.3.0
    • None
    • None
    • None

    Description

      Implementation for multiField with a simple inner field (textField, combo...) is currently cumbersome and complex:

      jcrMultiValueField needs a custom: 

      • entry resolution (ByMultiValueProperties)
        • a custom ItemProviderStrategy (JcrIndexedMultiPropertyValueProvider)
        • a custom property wrapper  SingleValueWrapper
      • order handler (MultiValuePropertyOrderHandler)
        • a marker for item removal (mgnl:removed)
      • definition which mutates the config (info.magnolia.ui.field.JcrMultiValueFieldDefinition#init)

      NorsuMultiValueFieldDefinition attempts to simplify things but still a custom:

      • entry resolution (ByMultiValueProperties)
        • a custom ItemProviderStrategy (IndexedMultiPropertyValueProvider)
        • a custom content wrapper  (IndexedContent)
        • an array as content wrapper (ArrayAsNestedContentProvider)
      • order handler (ArrayOrderHandler)
        • suffers from NORSU-439

       

       

       

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                rkovarik Roman Kovařík
                rkovarik Roman Kovařík
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 0.75d
                      0.75d