Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-584

Creating two repeaters at the same level with the "tab" layout throws an exception

XMLWordPrintable

      When trying to edit a structured content which contains more than one tab-layout repeater at the same level (not nested), an exception is thrown :

      org.apache.cocoon.forms.formmodel.DuplicateIdException: Duplicate widget id "_current_tab" detected at <fd:field> - cocoon://_plugins/structured/form/fr/page-def.xml?pipelinehash=3655271702069645758:17:33.
      Container widget "" at <fd:form> - cocoon://_plugins/structured/form/fr/page-def.xml?pipelinehash=3655271702069645758:1:105
      already contains a widget with id "_current_tab" at <fd:field> - cocoon://_plugins/structured/form/fr/page-def.xml?pipelinehash=3655271702069645758:3:33.
      	at org.apache.cocoon.forms.formmodel.WidgetDefinitionList.addWidgetDefinition(WidgetDefinitionList.java:62)
      	at org.apache.cocoon.forms.formmodel.AbstractContainerDefinition.addWidgetDefinition(AbstractContainerDefinition.java:76)
      	at org.apache.cocoon.forms.formmodel.FormDefinition.addWidgetDefinition(FormDefinition.java:84)
      	at org.apache.cocoon.forms.formmodel.AbstractContainerDefinitionBuilder.setupContainer(AbstractContainerDefinitionBuilder.java:62)
      	at org.apache.cocoon.forms.formmodel.FormDefinitionBuilder.buildWidgetDefinition(FormDefinitionBuilder.java:54)
      	at org.apache.cocoon.forms.DefaultFormManager.getFormDefinition(DefaultFormManager.java:179)
      	at org.apache.cocoon.forms.DefaultFormManager.getFormDefinition(DefaultFormManager.java:167)
      	at org.apache.cocoon.forms.DefaultFormManager.createForm(DefaultFormManager.java:109)
      	at org.apache.cocoon.forms.acting.MakeFormAction.act(MakeFormAction.java:61)
      	at org.ametys.anycontent.plugins.structured.forms.MakeFormAction.act(MakeFormAction.java:43)
      ...
      

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: