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

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

      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);
      }
      

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD