Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2164

JSON multi field not working

XMLWordPrintable

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

      I'm trying to use the json multi fields from the docs (https://docs.magnolia-cms.com/product-docs/Templating/Dialog-definition/Field-definition/List-of-fields/Multi-field.html#_json_multi_field) however I am getting an error and I think there might be an issue with the example

       
      This is the code i am using for a dialog

       

      label: Test
      form:  
        properties:     
          - name: stationboard
            label: Station Board
            $type: jsonMultiField
            field:         
              $type: jsonCompositeField
              idPropertyName: name
              properties:           
                name:             
                  label: name
                  $type: textField
                to:             
                  label: to
                  $type: textField
      
      

      When trying to create a component by
      1. Clicking on "New Content Component"
      2. Then selecting the "Test" component
      3. Then clicking "Next"
      magnolia shows an exception:

       

      RpcInvocationException: Unable to invoke method click in com.vaadin.shared.ui.button.ButtonServerRpc
       caused by InvocationTargetException
       caused by MethodException: Invocation of method buttonClick in info.magnolia.ui.dialog.ActionButton$$Lambda$1651/0x0000000840f71840 failed.
       caused by RuntimeException: info.magnolia.ui.api.action.ActionExecutionException: Action execution failed for action: commit
       caused by ActionExecutionException: Action execution failed for action: commit
       caused by NullPointerException
      

      Additional Information:

      • Edition: Community Edition
      • Magnolia Version: 6.2.7
      • Java Version: Ubuntu 11.0.10 (build 11.0.10+9-Ubuntu-0ubuntu1.20.04)

        Acceptance criteria

              akhamis Ashraf Khamis
              Simon Siefke Simon Siefke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 0.1h
                  0.1h