I'm using :
[*] PF 5.0.6
[*] Glassfish 3.1.2
[*] Mojara 2.1.7
[*] Commons Fileupload 1.3
In an interface, I have a fileupload and commandbutton that launch a file analysis and update a outputpanel .This is a long process ....
So I display a progressbar on a dialog during the processing.
On my test server, all of these works fine ... but on my production server when the file is bigger than a undetermined size.
So the blockUI closes before oncomplete event, but the progressbar continue to check progress ( on the http console of chrome , I could see that ). And the process continue on the server side....
Both server are on Centos 6.5 ... Configuration are very similar (virtually identical ...)
Is someone have got this problem before ? I can't figure it out ... !
I copy/paste a part of the xhtml file here.
Any help is welcome !
Regards
Code: Select all
<h:form id="form" enctype="multipart/form-data">
...
<p:fileUpload styleClass="panelUpload"
fileUploadListener="#{importsBean.handleFileUpload}"
dragDropSupport="true" id="fileUpload"
disabled="#{importsBean.disabledUpload}" sizeLimit="50000000"
update="panelUpload checkedButton importButton cancelButton :form:typeImport :form:providers :form:panelReport :form:panelFilesUploaded"
label="" allowTypes="/(\\.|\\/)(#{importsBean.allowTypes})$/"
auto="true" previewWidth="40">
<p:commandButton id="checkedButton" widgetVar="checkedButton"
update=":form:panelReport progress @this"
process="@this" actionListener="#{importsBean.importListener}"
onclick="PF('blockUIWidget').show();"
onstart="PF('progressAjax').start();"
oncomplete="PF('blockUIWidget').hide();PF('progressAjax').cancel()"
/>
<p:outputPanel id="panelReport">
<p:outputPanel rendered="#{importsBean.renderedPanelReport}">
...
</p:outputPanel>
</p:outputPanel>
<p:blockUI block=":body" trigger="checkedButton" widgetVar="blockUIWidget"
id="block">
<h:panelGrid columns="1" styleClass="text-center">
<h:outputText value="Chargement en cours..."
style="white-space: nowrap;" />
<p:progressBar id="progress" ajax="true"
value="#{importsBean.progressBarValue}" labelTemplate="{value}%"
widgetVar="progressAjax" interval="500" >
</p:progressBar>
</h:panelGrid>
</p:blockUI>
</h:form>