5 Replies Latest reply on Dec 8, 2009 7:46 AM by jsfgeeks

    rich:fileUpload problem after adding dynafaces(with UI)

    jsfgeeks

      Hi all,

      I am developing an application in Richfaces. Before that, I was using UI components (xmlns:ui="http://www.sun.com/web/ui") with dynafaces.
      Now, I want to merge both the projects (New Richfaces and old UI_with_dynafaces). Even I have done this successfully. But, the problem is, the rich:fileUpload stops it's working after adding UI project(pages) to the Richfaces project. The other things almost works fine.
      In Richfaces only, it works fine. But, my need is to merge both the projects.
      I am developing it using Richfaces 3.3.2 SR1, Glassfish V2.1, Netbeans 6.7.1.

      Any help will be appreciated.

      Thanks in advance,
      JSF GEEKS

        • 1. Re: rich:fileUpload problem after adding dynafaces(with UI)
          nbelaevski

          Hi,

          Have you changed something in web.xml to add DynaFaces?

          • 2. Re: rich:fileUpload problem after adding dynafaces(with UI)
            jsfgeeks

            Hi nbelaevski,

            Thanks for your support. I might got the point, what you want to say. After adding Simple JSF pages(with UI components), the change I found in the web.xml is, it has an uploadFilter within it like below.

            <filter>
             <filter-name>UploadFilter</filter-name>
             <filter-class>com.sun.rave.web.ui.util.UploadFilter</filter-class>
             <init-param>
             <description>The maximum allowed upload size in bytes. If this is set to a negative value, there is no maximum. The default value is 1000000.</description>
             <param-name>maxSize</param-name>
             <param-value>1000000</param-value>
             </init-param>
             <init-param>
             <description>The size (in bytes) of an uploaded file which, if it is exceeded, will cause the file to be written directly to disk instead of stored in memory. Files smaller than or equal to this size will be stored in memory. The default value is 4096.</description>
             <param-name>sizeThreshold</param-name>
             <param-value>4096</param-value>
             </init-param>
             </filter>
            


            So it doesn't work for richfaces fileUpload. Before adding the UI pages to Richfaces project, there were not a fileUpload Filter in the web.xml. My problem is I want to run both the fileUploader (UI & Richfaces) together(In different pages). How, I don't know.

            Can you help me?

            Thanks again for your support,
            JSF GEEKS

            • 3. Re: rich:fileUpload problem after adding dynafaces(with UI)
              jsfgeeks

              Sorry for dummy,

              Just want to clarify that, if I remove that uploadFilter, then Richfaces fileUpload component works properly, but the ui fileUpload component stops wroking. And if I don't remove that uploadFilter, then ui fileUpload component works properly, but Richfaces fileUpload component stops working.

              Thanks again,
              JSF GEEKS

              • 4. Re: rich:fileUpload problem after adding dynafaces(with UI)
                nbelaevski

                Looks like you'll have to choose between uploads. Why do you need UI's version of upload?

                • 5. Re: rich:fileUpload problem after adding dynafaces(with UI)
                  jsfgeeks

                  Thanks again for your support, but my requirement is to keep both of them, right now.

                  So is it possible, to do so, or not ?

                  Thanks,
                  JSF GEEKS