0 Replies Latest reply on Mar 19, 2012 6:29 AM by ashish_rahul

    richfaces file upload not completing on IE

    ashish_rahul

      Hi,

       

      I am facing a problem with rich:fileupload. the files are being uploaded. however, the control seems not to return to the browser, says downloading picture ico_clear.gif from 3.3.3.Finalorg, although i can see that the images are present in the lib under 3.3.3.Final.

       

      Am i missing something. I have already tried immediateupload , createTempfiles and flash, but no help. Components on the same page are not being rerendered.

       

      Sample code :

       

      <h:form id="valueImport" enctype="multipart/form-data">

                    <h:panelGrid columnClasses="cols" columns="3">

                           <a:outputPanel id="valueFileChooser">

          

                                          <ui:include src="/WEB-INF/incl/msgbox.xhtml" />

                                          <s:decorate id="uploadFileNameDecorate" template="/WEB-INF/incl/edit_single.xhtml">

                                          <ui:define name="label">

                                                <h:outputLabel for="file">Select Excel File to Upload:</h:outputLabel>

                                          </ui:define>

                                          <rich:fileUpload

                                                      fileUploadListener="#{valueImport.onFileImport}"

                                                      maxFilesQuantity="1"

                                                      acceptedTypes="xls, xlsx"

                                                      immediateUpload="true"

                                                      allowFlash="true"

                                                      listWidth="650"

                                                      listHeight="120"

                                                      id="upload"

                                                      onerror="alert('Error in uploader');"

                                                      onuploadcomplete="alert('File Uploaded');"

                                                      reRender="valueFileStatus"

                                                      status="waitStatus">

                                       <a:support event="onclear"

                                             reRender="valueFileChooser" />

                                       <a:support event="onuploadcomplete"

                                             reRender="valueFileStatus" />

                      </rich:fileUpload>  

                </s:decorate>

           </a:outputPanel>

          </h:panelGrid>

          </h:form>