5 Replies Latest reply on Dec 1, 2009 4:44 AM by ilya_shaikovsky

    Flash Support in FileUpload does not work

    pschuett

      Hallo,

      I use rich:fileUpload and I have a problem with the flash support:

      <rich:panel id="uploadPanel" bodyClass="info" style="min-height:40em">
      <f:facet name="header">
      <h:outputText value="#{ar.file_upload_select_process_files}" />
      </f:facet>
      <rich:fileUpload fileUploadListener="#{fileUploadBean.uploadListener}"
      maxFilesQuantity="#{fileUploadBean.uploadsAvailable}"
      id="upload" noDuplicate="true"
      immediateUpload="#{fileUploadBean.autoUpload}"
      acceptedTypes="xpdl" allowFlash="#{fileUploadBean.useFlash}"
      listHeight="37em">
      <a4j:support event="onuploadcomplete" reRender="info, foundDefsTable,importButton" />
      <f:facet name="label">
      <h:outputText value="#{ar.file_upload_uploading}" />
      </f:facet>
      </rich:fileUpload>
      <h:selectBooleanCheckbox value="#{fileUploadBean.useFlash}">
      <a4j:support event="onclick" reRender="uploadPanel, upload" ajaxSingle="true"/>
      </h:selectBooleanCheckbox>
      <h:outputText value="#{ar.file_upload_multiple_selection}"/>
      </rich:panel>


      When I set fileUploadBean.useFlash to True (with the checkbox) then the add-Button of rich:fileUpload is disabled.
      If I set it to false then everything works, but I cannot select multiple files to upload.

      I use the following entries in my Maven-POM:


      org.richfaces.framework
      richfaces-api
      3.3.2.SR1


      org.richfaces.framework
      richfaces-impl
      3.3.2.SR1


      org.richfaces.ui
      richfaces-ui
      3.3.2.SR1


      I use Flash 10.0.32.18 and it does not work in Firefox 3.5, IE 8 and Opera 10.01.

      Ciao
      Peter Schütt