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

Can't put layouts and toggle mode in ajax form

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6-RC1, 5.6
    • Component/s: Seam / JSF UI

      Description

      The attached file shows that when clicking on "edit", some duplication if ids happens in ajax tree serialization.
      Steps to reproduce: in DAM, select an image to fill the "currentSelection" and go to http://localhost:8080/nuxeo/test.faces?conversationId=0NXMAIN (keep the same conversation id).
      Clicking on edit, the following error appears: Caused by: java.lang.IllegalStateException: duplicate Id for a component assetView:nxl_exif_info:nxw_date_time_original

      Error disappears when changing layouts mode declaration from:

      <nxl:layout name="heading" mode="#

      {documentActions.displayMode}"
      value="#{documentActions.currentSelection}"/>
      <nxl:layout name="damc" mode="#{documentActions.displayMode}

      "
      value="#

      {documentActions.currentSelection}"/>
      <nxl:layout name="dublincore" mode="#{documentActions.displayMode}"
      value="#{documentActions.currentSelection}

      "/>

      to:

      <f:subview rendered="#

      {documentActions.displayMode == 'view'}

      ">
      <nxl:layout name="heading" mode="view"
      value="#

      {documentActions.currentSelection}"/>
      <nxl:layout name="damc" mode="view"
      value="#{documentActions.currentSelection}

      "/>
      <nxl:layout name="dublincore" mode="view"
      value="#

      {documentActions.currentSelection}"/>
      </f:subview>
      <f:subview rendered="#{documentActions.displayMode == 'edit'}">
      <nxl:layout name="heading" mode="edit"
      value="#{documentActions.currentSelection}

      "/>
      <nxl:layout name="damc" mode="edit"
      value="#

      {documentActions.currentSelection}"/>
      <nxl:layout name="dublincore" mode="edit"
      value="#{documentActions.currentSelection}

      "/>
      </f:subview>

      Hint: may be linked to a4j:form keeping some references of its children, and not playing ok with the fact that layouts or c:fi might change the tree structure

        Attachments

          Issue Links

            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: