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

Error page when customized layout 'dndEdit' does not render any metadata-related widget

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0-HF15, 7.3
    • Fix Version/s: 6.0-HF22, 7.10
    • Component/s: Layouts & Widgets
    • Tags:
    • Sprint:
      nxNag Sprint 7.4.5
    • Story Points:
      2

      Description

      How to reproduce:

      • create a new XML extension:
        <require>org.nuxeo.ecm.platform.forms.layouts.webapp</require>
        <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point="layouts">
            <layout name="dndEdit">
              <templates>
                <template mode="any">/layouts/layout_default_template.xhtml</template>
              </templates>
        
              <rows>
                <row>
                  <widget>test_npe</widget>
                </row>
              </rows>
              
              <widget name="test_npe" type="text">
                <labels>
                  <label mode="any">Nature (SUPNXP-13968)</label>
                </labels>
                <translated>false</translated>
                <fields>
                  <field>dc:nature</field>
                </fields>
                <widgetModes>
                  <mode value="create">hidden</mode>
                </widgetModes>
              </widget>
        
            </layout>
        
        </extension>
        
      • drag and (hold a few seconds) drop a file in a Folderish document, the smart import window opens
      • select smart import with metadata (screenshot-1)
      • click button continue (screenshot-2)

      Here is a workaround:

      <require>org.nuxeo.ecm.platform.forms.layouts.webapp</require>
      <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point="layouts">
          <layout name="dndEdit">
            <templates>
              <template mode="any">/layouts/layout_default_template.xhtml</template>
            </templates>
      
            <rows>
              <row>
                <widget>dummy</widget>
              </row>
              <row>
                <widget>test_npe</widget>
              </row>
            </rows>
            
            <widget name="test_npe" type="text">
              <labels>
                <label mode="any">Nature (SUPNXP-13968)</label>
              </labels>
              <translated>false</translated>
              <fields>
                <field>dc:nature</field>
              </fields>
              <widgetModes>
                <mode value="create">hidden</mode>
              </widgetModes>
            </widget>
      
            <widget name="dummy" type="text">
              <labels>
                <label mode="any"> </label>
              </labels>
              <translated>false</translated>
              <fields>
                <field>dc:title</field>
              </fields>
              <widgetModes>
                <mode value="create">view</mode>
              </widgetModes>
            </widget>
      
          </layout>
      
      </extension>
      

        Attachments

        1. server.log
          33 kB
        2. screenshot-2.png
          screenshot-2.png
          35 kB
        3. screenshot-1.png
          screenshot-1.png
          22 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: