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

Implement a simple, datasource agnostic, multiValueField

XMLWordPrintable

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

      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

       

       

       

       

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD

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