Skip to content

Commit 1ff1703

Browse files
committed
fixed ajax render id (Issue #915)
1 parent c4dd049 commit 1ff1703

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

imixs-workflow-faces/src/main/resources/META-INF/resources/imixs/imixsFileUpload.xhtml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</cc:interface>
1313

1414
<cc:implementation>
15-
<div class="imixsfileupload #{cc.attrs.styleClass}">
15+
<h:panelGroup layout="block" styleClass="imixsfileupload #{cc.attrs.styleClass}">
1616
<!-- #{fileUploadController.setWorkitem(cc.attrs.workitem)} -->
1717
<h:inputFile id="imixsfileInput" class="imixsfileuploadinput" value="#{fileUploadController.files}"
1818
pt:multiple="true" onchange="imixsFileUploadRefresh()" />
@@ -22,7 +22,7 @@
2222

2323
<!-- show attachments from workitem -->
2424
<ui:fragment rendered="#{cc.attrs.showattachments}">
25-
<h:panelGroup layout="block" styleClass="imixsfileupload-table" id="persistendFileListID" binding="#{persistedFileListComponent}">
25+
<h:panelGroup layout="block" styleClass="imixsfileupload-table" id="persistendFileListID">
2626
<!-- attached files -->
2727
<h:dataTable value="#{cc.attrs.workitem.fileData}" var="fileData"
2828
styleClass="imixsFileUpload_uploadlist" >
@@ -46,18 +46,16 @@
4646
</h:column>
4747
<!-- delete stored file -->
4848
<h:column>
49-
<h:commandLink value="🗙"
50-
styleClass="remove-link"
49+
<h:commandLink value="🗙" styleClass="remove-link"
5150
actionListener="#{fileUploadController.removeAttachedFile(fileData.name)}">
52-
<f:ajax
53-
render="#{persistedFileListComponent.clientId}"/>
51+
<f:ajax render=":#{component.parent.parent.parent.clientId}"/>
5452
<f:param name="cid" value="#{fileUploadController.getCID()}" />
5553
</h:commandLink>
5654
</h:column>
5755
</h:dataTable>
5856
</h:panelGroup>
5957
</ui:fragment>
60-
</div>
58+
</h:panelGroup>
6159

6260
</cc:implementation>
6361

imixs-workflow-faces/src/main/resources/META-INF/resources/imixs/imixsFileUploadAjax.xhtml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@
6262
</h:column>
6363
</h:dataTable>
6464
</h:panelGroup>
65-
66-
6765
<!-- show attachments from workitem -->
6866
<ui:fragment rendered="#{cc.attrs.showattachments}">
69-
<h:panelGroup layout="block" styleClass="imixsfileupload-table" id="persistendFileListID" binding="#{persistedFileListComponent}">
67+
<h:panelGroup layout="block" styleClass="imixsfileupload-table" id="persistendFileListID">
7068
<!-- attached files -->
7169
<h:dataTable value="#{cc.attrs.workitem.fileData}" var="fileData"
7270
styleClass="imixsFileUpload_uploadlist" >
@@ -90,22 +88,15 @@
9088
</h:column>
9189
<!-- delete stored file -->
9290
<h:column>
93-
<h:commandLink value="🗙"
94-
styleClass="remove-link"
91+
<h:commandLink value="🗙" styleClass="remove-link"
9592
actionListener="#{fileUploadController.removeAttachedFile(fileData.name)}">
96-
<f:ajax
97-
render="#{persistedFileListComponent.clientId}"/>
93+
<f:ajax render=":#{component.parent.parent.parent.clientId}"/>
9894
<f:param name="cid" value="#{fileUploadController.getCID()}" />
9995
</h:commandLink>
10096
</h:column>
10197
</h:dataTable>
10298
</h:panelGroup>
10399
</ui:fragment>
104100
</div>
105-
106-
107101
</cc:implementation>
108-
109-
110-
111102
</ui:composition>

0 commit comments

Comments
 (0)