2 Replies Latest reply on Nov 9, 2009 4:29 AM by simonc2009

    Can <rich:fileUpload> works in ModalPanel?

    simonc2009

      Dear All,

      I am in use of <rich:fileUpload> and it works if it is trigger direct by a command button.

      However, if <rich:fileUpload> is trigger inside a ModalPanel.
      Problem occurs; <rich:fileUpload> contains 2 buttons [Add] and [Upload].
      Press [Add] button remains ok, but when press [upload] button, the file do not upload to server.

      Please help and thanks

      Sample Code is as below
      ================
      <rich:modalPanel id="gLUploadJvPanel" width="750" height="650">
      <h:form id="gLUploadJvForm" >
      <rich:fileUpload
      id="upload1"
      uploadData="#{bean.data}"
      fileUploadListener="#{bean.listener}"
      listWidth="400"
      listHeight="60"
      maxFilesQuantity="1"
      acceptedTypes="#{bean.fileTypes}"
      allowFlash="auto">
      <f:facet name="label">
      <h:outputText value="{_KB}KB from {KB}KB ploaded --- {mm}:{ss}">
      </h:outputText>
      </f:facet>
      </rich:fileUpload>
      </h:form>
      </rich:modalPanel>