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

Fields (except for the textField) inside of new multiValueField don't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.3.0
    • None
    • None
    • None

    Description

      Steps to reproduce

      $type: multiValueField
        field: 
          $type: comboBoxField    
      

      Expected results

      The values are properly written and read.

      Actual results

      An exception is thrown

      Workaround

      None

      Development notes

      I'd should be possible to do this at definition level:

      public void init() {
              if (getConverterClass() == null && getField() instanceof AbstractSelectFieldDefinition) {
                  setFieldBinderClass((Class) SelectFieldBinder.class);
              }
      }
      

      and SelectFieldBinder extends the condition:

      if (field instanceof MultiSelect || *field instanceof MultiField*) {
                              return new MultiItemConverter(converter);
      }
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD