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

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

      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)
      ...
      

          [CMS-584] Creating two repeaters at the same level with the "tab" layout throws an exception

          Cédric Damioli made changes -
          Workflow Original: jira [ 11791 ] New: Ametys [ 13832 ]
          Julien Couret (Inactive) made changes -
          Project Import New: Thu May 28 17:09:53 UTC 2009 [ 1243530593866 ]
          Cédric Damioli made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Nicolas Gavalda (Inactive) made changes -
          Fix Version/s New: 2.9.6 [ 11431 ]
          Nicolas Gavalda (Inactive) made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Added the id of the repeater to the '_current_tab' widget to avoid id conflict.

          Nicolas Gavalda (Inactive) added a comment - Added the id of the repeater to the '_current_tab' widget to avoid id conflict.
          Nicolas Gavalda (Inactive) created issue -

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

              Created:
              Updated:
              Resolved: