Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-232

Fix files widget declaration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: None

      Description

      Files widget declaration is not done correctly, it should state:

      <widget name="w_2_0" type="template">
      <labels>
      <label mode="any">files</label>
      </labels>
      <translated>false</translated>
      <fields>
      <field schema="files">files</field>
      </fields>
      <properties widgetMode="any">
      <property name="template">/widgets/files_list_widget_template.xhtml</property>
      </properties>
      <subWidgets>
      <widget name="item" type="file">
      <fields>
      <field>file</field>
      <field>filename</field>
      </fields>
      </widget>
      </subWidgets>
      </widget>

      instead of :

      <widget name="w_2_0" type="template">
      <labels>
      <label mode="any">files</label>
      </labels>
      <translated>false</translated>
      <fields>
      <field schema="files">files</field>
      <field schema="files">files/filename</field>
      </fields>
      <properties widgetMode="any">
      <property name="template">/widgets/files_list_widget_template.xhtml</property>
      </properties>
      <subWidgets>
      <widget name="item" type="file">
      <fields>
      <field/>
      </fields>
      </widget>
      </subWidgets>
      </widget>

      Plus all options presented in this widget configuration is actually not configurable (these are configurations for the nxu:inputList tag, but all of them are not mapped in the list widget default template)

        Attachments

          Activity

            People

            • Assignee:
              atchertchian Anahide Tchertchian
              Reporter:
              atchertchian Anahide Tchertchian
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: