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

Unable to convert String to Long in select fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an issue
    • Icon: Major Major
    • None
    • 6.2.12
    • dialogs
    • None

      Steps to reproduce

      1.  Define a select field (tested with ComboBoxfield, listSelectField and radioButtonGroupField with an optionListDatasource using longs for option values.
        Example:
      comboSelect: 
                label: Select
                $type: comboBoxField
                type: java.lang.Double
                converterClass: com.vaadin.data.converter.StringToDoubleConverter
                datasource: 
                  $type: optionListDatasource
                  options: 
                    - name: one
                      label: One
                      value: 1
                    - name: two
                      label: Two
                      value: 2
      
      1. Attempt to make a selection using the dialog

      Expected results

      The dialog can be saved and the JCR contains Long properties.
      The documentation for these fields makes reference to property type and converterClass configuration.

      Actual results

      On selection, Admin Central shows an error bar and the attached stack trace is logged.

      Workaround

      None. Dialog can only save string properties.

        Acceptance criteria

              Unassigned Unassigned
              chris.jennings Chris Jennings
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD