-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Seam / JSF UI
-
Tags:
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="#
<nxl:layout name="dublincore" mode="#{documentActions.displayMode}"
value="#{documentActions.currentSelection}
"/>
to:
<f:subview rendered="#
{documentActions.displayMode == 'view'}">
<nxl:layout name="heading" mode="view"
value="#
<nxl:layout name="damc" mode="view"
value="#{documentActions.currentSelection}
"/>
<nxl:layout name="dublincore" mode="view"
value="#
</f:subview>
<f:subview rendered="#{documentActions.displayMode == 'edit'}">
<nxl:layout name="heading" mode="edit"
value="#{documentActions.currentSelection}
"/>
<nxl:layout name="damc" mode="edit"
value="#
<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
- depends on
-
NXP-5725 Fix layouts re-render in ajax
- Resolved