Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28419

Make spreadsheet read label field property to display vocabulary entries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 10.10
    • Fix Version/s: None
    • Component/s: Seam / JSF UI, Spreadsheet

      Description

      Steps to reproduce the bug:

      1. Define a vocabulary whose label column is mylabel.
      2. In a table layout or content view layout, add a Single Directory Suggestion widget which uses this new vocabulary and set the Label field name property to mylabel
      3. After displaying the content view, click to open the Spreadsheet editor

      Observed behavior: an error occurs which prevents from using Spreadsheet on this layout. The stacktrace is

      ERROR [http-nio-0.0.0.0-8080-exec-4] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] org.nuxeo.ecm.core.api.model.PropertyNotFoundException: segment label_fr cannot be resolved, label_fr
      org.nuxeo.ecm.core.api.model.PropertyNotFoundException: segment label_fr cannot be resolved, label_fr
      	at org.nuxeo.ecm.core.api.model.impl.AbstractProperty.resolvePath(AbstractProperty.java:610) ~[nuxeo-core-api-10.10-HF18.jar:?]
      	at org.nuxeo.ecm.core.api.model.impl.AbstractProperty.resolvePath(AbstractProperty.java:569) ~[nuxeo-core-api-10.10-HF18.jar:?]
      	at org.nuxeo.ecm.core.api.model.impl.AbstractProperty.getValue(AbstractProperty.java:475) ~[nuxeo-core-api-10.10-HF18.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DataModelImpl.getData(DataModelImpl.java:96) ~[nuxeo-core-api-10.10-HF18.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getProperty(DocumentModelImpl.java:568) ~[nuxeo-core-api-10.10-HF18.jar:?]
      	at org.nuxeo.ecm.platform.forms.layout.io.plugins.helpers.VocabularyHelper.convertToSelectOptions(VocabularyHelper.java:118) ~[nuxeo-platform-forms-layout-io-plugins-10.10.jar:?]
      	at org.nuxeo.ecm.platform.forms.layout.io.plugins.helpers.VocabularyHelper.getVocabularySelectOptions(VocabularyHelper.java:61) ~[nuxeo-platform-forms-layout-io-plugins-10.10.jar:?]
      	at org.nuxeo.ecm.platform.forms.layout.io.plugins.WidgetDirectoryItemsConverter.getWidgetDefinition(WidgetDirectoryItemsConverter.java:70) ~[nuxeo-platform-forms-layout-io-plugins-10.10.jar:?]
      	at org.nuxeo.ecm.platform.forms.layout.export.LayoutDefinitionJsonWriter.getWidgetDefinition(LayoutDefinitionJsonWriter.java:205) ~[nuxeo-platform-forms-layout-export-10.10.jar:?]
      	at org.nuxeo.ecm.platform.forms.layout.export.LayoutDefinitionJsonWriter.write(LayoutDefinitionJsonWriter.java:121) ~[nuxeo-platform-forms-layout-export-10.10.jar:?]
      	at org.nuxeo.ecm.platform.forms.layout.export.LayoutDefinitionJsonWriter.write(LayoutDefinitionJsonWriter.java:59) ~[nuxeo-platform-forms-layout-export-10.10.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter.write(AbstractJsonWriter.java:81) ~[nuxeo-core-io-10.10-HF18.jar:?]
      	at org.nuxeo.ecm.core.io.registry.MarshallerHelper.objectToJson(MarshallerHelper.java:76) ~[nuxeo-core-io-10.10-HF18.jar:?] 

       

      Expected behavior: Spreadsheet should read the properties of the widget to find the name of the field used for the label and correctly display the vocabulary entries in the editor

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: