0 Replies Latest reply on Jul 31, 2008 7:43 PM by Paul Pantages

    rich:fileUpload in modalPanel

    Paul Pantages Novice

      Hello Forum,


      I am using:
      Jboss 4.2.2.GA
      Seam 2.0.1.GA
      Richfaces 3.2.1.GA


      I am using the rich:fileUpload to upload some attachemts.


      The fileUploadListener is defined in a Seam component,
      neEditor, which is a Stateful component in CONVERSATION scope.


      Without the modal panel, this fileUpload works perfectly:



      <rich:fileUpload 
         fileUploadListener="#{neEditor.fileUploadListener}"
         maxFilesQuantity="5"
         immediateUpload="false">
         <a4j:support event="onuploadcomplete" reRender="mainPanel4" />
      </rich:fileUpload>
      



      However, putting it in a modal panel, like so does not.



      <rich:modalPanel id="attup" 
         autosized="true" 
         onmaskclick="javascript:Richfaces.hideModalPanel('attup')">
         <h:form>
            <rich:fileUpload 
               fileUploadListener="#{neEditor.fileUploadListener}"
               maxFilesQuantity="5"
               immediateUpload="false">
               <a4j:support event="onuploadcomplete" reRender="mainPanel4" />
            </rich:fileUpload>
         </h:form>
      </rich:modalPanel>
      



      The upload appears to complete, but the UploadItem upload presented to
      the listener contains null values for bytes, filename and contentType.


      If I remove the h:form, the listner is not called.


      If anyone has any ideas plesae post ....


      I will post this to the richfaces forum also.


      Thanks, PdP