5 Replies Latest reply on Apr 1, 2009 5:32 AM by Ilya Shaikovsky

    reRender problem on rich:fileUpload

    jai jadjal Newbie

      hi,
      i have uploaded file with size 4mb, but it will not upload full content.
      After upload complete i can see only 1mb to 2 mb...This will happen even i mentioned maxRequestSize in web.xml.


      <filter-name>Seam Filter</filter-name>
      <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
      <init-param>
      <param-name>createTempFiles</param-name>
      <param-value>true</param-value>
      </init-param>
      <init-param>
      <param-name>maxRequestSize</param-name>
      <param-value>5000000</param-value>
      </init-param>


      <filter-mapping>
      <filter-name>Seam Filter</filter-name>
      <url-pattern>*.seam</url-pattern>
      </filter-mapping>




      i have code to upload file is following..

      <rich:fileUpload fileUploadListener="#{uploader.fileUploadListener}"
      maxFilesQuantity="1" id="upload" immediateUpload="false"
      acceptedTypes="csv,txt" autoclear="false" stopControlLabel="Please wait..."
      listHeight="30px" listWidth="200px" status="uplaodstatus">
      <a4j:support event="onuploadcomplete" ajaxSingle="true" reRender="uploadedfilegroup" timeout="#{mail['timeout']}"/>
      </rich:fileUpload>


      The problem is before uploding whole file the <rich:fileupload component is reRendering.. i cant stop this upto load whole file..

      fileUploadListener is called after uploadcompleted refer
      link :- http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/fileUpload.html

      due to this problem i cant process the listener..
      can any one help me..

        • 1. Re: reRender problem on rich:fileUpload
          jai jadjal Newbie

           

          "jayaganesh13" wrote:
          hi,
          i have uploaded file with size 4mb, but it will not upload full content.
          After upload complete i can see only 1mb to 2 mb...This will happen even i mentioned maxRequestSize in web.xml.

          <filter>
          <filter-name>Seam Filter</filter-name>
          <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
          <init-param>
          <param-name>createTempFiles</param-name>
          <param-value>true</param-value>
          </init-param>
          <init-param>
          <param-name>maxRequestSize</param-name>
          <param-value>5000000</param-value>
          </init-param>
          </filter>

          <filter-mapping>
          <filter-name>Seam Filter</filter-name>
          <url-pattern>*.seam</url-pattern>
          </filter-mapping>




          i have code to upload file is following..

          <rich:fileUpload fileUploadListener="#{uploader.fileUploadListener}"
          maxFilesQuantity="1" id="upload" immediateUpload="false"
          acceptedTypes="csv,txt" autoclear="false" stopControlLabel="Please wait..."
          listHeight="30px" listWidth="200px" status="uplaodstatus">
          <a4j:support event="onuploadcomplete" ajaxSingle="true" reRender="uploadedfilegroup" timeout="#{mail['timeout']}"/>
          </rich:fileUpload>


          The problem is before uploding whole file the <rich:fileupload component is reRendering.. i cant stop this upto load whole file..

          fileUploadListener is called after uploadcompleted refer
          link :- http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/fileUpload.html

          due to this problem i cant process the listener..
          can any one help me..


          • 2. Re: reRender problem on rich:fileUpload
            Ilya Shaikovsky Master

             

            The problem is before uploding whole file the <rich:fileupload component is reRendering.. i cant stop this upto load whole file..


            Not sure that understand your problem. B.t.w. just chcked the big files upload (8 mb) at local demosite copy. The picture shown fine for me.

            • 3. Re: reRender problem on rich:fileUpload
              jai jadjal Newbie

              i need to upoad txt, csv file which is 4mb size..i could not upload file..
              i can that file which i have uploaded under temp folder in tomcat which is only below 2 mb size..

              • 4. Re: reRender problem on rich:fileUpload
                jai jadjal Newbie

                 

                "jayaganesh13" wrote:
                i need to upoad txt, csv file which is 4mb size..i could not upload file..
                i can see that file which i have uploaded under temp folder in tomcat which is only below 2 mb size..


                • 5. Re: reRender problem on rich:fileUpload
                  Ilya Shaikovsky Master

                  type of file has no difference... which JSF/RF version you using? you could freely download the samples of our sample and check the settings/code.