I have problems setting the correct id in the 'update' attribute of
<p:outputPanel>
<h:panelGrid columns="2">
<h:outputText value="#{msg.uploadNewProcessLabel}" />
<h:form id="fileupload">
<p:fileUpload id="fileuploadButton" auto="true"
customUI="true" fileUploadListener="#{processImporter.processFile}"
update=":processes" label="Upload" />
</h:form>
</h:panelGrid>
</p:outputPanel>
<p:outputPanel>
<h:form id="processList">
<p:dataTable id="processes" var="process"
value="#{processDefinitionList}"
paginator="true" rows="10" paginatorAlwaysVisible="false">
I get the following error message:
javax.faces.FacesException: Cannot find component with identifier ":processes" referenced from "fileupload:fileuploadButton".
at org.primefaces.util.ComponentUtils.findClientIds(ComponentUtils.java:251)
at org.primefaces.component.fileupload.FileUploadRenderer.encodeScript(FileUploadRenderer.java:113)
at org.primefaces.component.fileupload.FileUploadRenderer.encodeEnd(FileUploadRenderer.java:90)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
On an other answered question I got the hint with : in front of the components id, which should lead to a scan from the 'upper level'.
What exactly does this mean? I read the UIComponents.findComponent JavaDoc, but don't get the idea...