Hi all,
I have been asked to move a already working rich:fileUpload-component inside a modalpanel. I'm using RF 3.3.1 GA.
The fileUpload has lots of a4j:support-components to trigger server side handling of status changes. Everything worked fine before, but moving the code inside the modalpanel seems to have broken something:
<h:panelGroup layout="block" class="left">
<h:form >
<rich:fileUpload
addControlLabel="Importdatei hochladen"
fileUploadListener="#{fileUpload.listener}"
id="ADDRESSBOOK_FILEUPLOAD"
immediateUpload="true" autoclear="true" acceptedTypes="csv,txt"
rendered="#{renderingController.maximized}">
<a4j:support
event="ontyperejected"
action="#{addressImportExportBacking.typeRejectedAction}">
</a4j:support>
<a4j:support
event="onerror"
action="#{addressImportExportBacking.uploadErrorAction}"
reRender="ADDRESSBOOK_IMPORT_STATUS_MP_CONTENT">
</a4j:support>
<a4j:support event="onuploadcomplete" oncomplete="alert('upload completed!');"/>
<a4j:support event="onupload"
action="#{addressImportExportBacking.uploadAction}"
reRender="ADDRESSBOOK_IMPORT_STATUS_MP_CONTENT">
</a4j:support>
</rich:fileUpload>
</h:form>
</h:panelGroup>
while I could verify that the events 'onupload' and 'ontyperejected' are produced and consumed correctly, the oncomplete JS of the a4j:support for the 'onuploadcomplete' event is never executed. Judging from the results I got from searching for "fileupload modalpanel" there seem to be a few problems regarding fileupload inside modalpanel, still I couldn't find my particular problem, does anybody have an idea on what could be the cause of the problem?
Best regards
Chris