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

Update the "filesList" widget to use javascript list

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0-HF10, 7.3
    • Component/s: Layouts & Widgets
    • Tags:
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      Feature is available since 7.2 by default.

      The following additional configuration is needed on 6.0 maintenance branch (from 6.0-HF10) to benefit from the feature when using the Studio "filesList" widget (and when compat is not enabled, see NXP-3427):

        <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
          point="widgettypes">
          <widgetType name="filesList">
            <configuration>
              <title>Files</title>
              <description>
                <p>
                  The Files displays an editable list of files, using javascript to
                  keep the uploaded file path when adding several files in a row.
                </p>
                <p>Items are defined using sub wigdets configuration.</p>
                <p>
                  This is actually a template widget type whose template uses a
                  &lt;nxu:inputList /&gt; tag in edit or create mode, and a table
                  iterating over items in other modes.
                </p>
              </description>
              <categories>
                <category>document</category>
                <category>studio</category>
              </categories>
              <supportedModes>
                <mode>edit</mode>
                <mode>view</mode>
              </supportedModes>
              <acceptingSubWidgets>true</acceptingSubWidgets>
              <fields>
                <list>true</list>
                <complex>false</complex>
                <supportedTypes>
                  <type>blob</type>
                </supportedTypes>
                <defaultTypes>
                  <type>blob</type>
                </defaultTypes>
              </fields>
              <properties>
                <layouts mode="edit">
                  <layout name="list_widget_type_properties_edit">
                    <rows>
                      <row>
                        <widget>required</widget>
                      </row>
                      <row>
                        <widget>diff</widget>
                      </row>
                    </rows>
                    <widget name="required" type="checkbox">
                      <labels>
                        <label mode="any">Required</label>
                      </labels>
                      <fields>
                        <field>required</field>
                      </fields>
                    </widget>
                    <widget name="diff" type="checkbox">
                      <labels>
                        <label mode="any">Diff</label>
                      </labels>
                      <fields>
                        <field>diff</field>
                      </fields>
                    </widget>
                  </layout>
                </layouts>
              </properties>
            </configuration>
            <handler-class&gt;
              org.nuxeo.ecm.platform.forms.layout.facelets.plugins.ListWidgetTypeHandler
            </handler-class&gt;
            <property name="template">/widgets/js_files_list_widget_template.xhtml</property>
            <property name="compatTemplate">/widgets/files_list_widget_template.xhtml</property>
          </widgetType>
      
        </extension>
      
      Show
      Feature is available since 7.2 by default. The following additional configuration is needed on 6.0 maintenance branch (from 6.0-HF10) to benefit from the feature when using the Studio "filesList" widget (and when compat is not enabled, see NXP-3427 ): <extension target= "org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point= "widgettypes" > <widgetType name= "filesList" > <configuration> <title>Files</title> <description> <p> The Files displays an editable list of files, using javascript to keep the uploaded file path when adding several files in a row. </p> <p>Items are defined using sub wigdets configuration.</p> <p> This is actually a template widget type whose template uses a &lt;nxu:inputList /&gt; tag in edit or create mode, and a table iterating over items in other modes. </p> </description> <categories> <category>document</category> <category>studio</category> </categories> <supportedModes> <mode>edit</mode> <mode>view</mode> </supportedModes> <acceptingSubWidgets> true </acceptingSubWidgets> <fields> <list> true </list> <complex> false </complex> <supportedTypes> <type>blob</type> </supportedTypes> <defaultTypes> <type>blob</type> </defaultTypes> </fields> <properties> <layouts mode= "edit" > <layout name= "list_widget_type_properties_edit" > <rows> <row> <widget>required</widget> </row> <row> <widget>diff</widget> </row> </rows> <widget name= "required" type= "checkbox" > <labels> <label mode= "any" >Required</label> </labels> <fields> <field>required</field> </fields> </widget> <widget name= "diff" type= "checkbox" > <labels> <label mode= "any" >Diff</label> </labels> <fields> <field>diff</field> </fields> </widget> </layout> </layouts> </properties> </configuration> <handler- class& gt; org.nuxeo.ecm.platform.forms.layout.facelets.plugins.ListWidgetTypeHandler </handler- class& gt; <property name= "template" >/widgets/js_files_list_widget_template.xhtml</property> <property name= "compatTemplate" >/widgets/files_list_widget_template.xhtml</property> </widgetType> </extension>
    • Sprint:
      nxNag Sprint 7.3.1

      Description

      There is a custom template handling list of files, it should use the javascript list features since NXP-3427 is done.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.