4 Replies Latest reply on Jul 31, 2007 11:25 AM by rulinsun

    Help! RichFaces + MyFaces weird problem

      I have a application using both RichFaces and MyFaces. In some pages, there are ajax functions using a4j and rich tags, and in one page there is a fileUpload function using t:inputFileUpload. Those are some jar files:

      myfaces-api-1.1.5.jar
      myfaces-impl-1.1.5.jar
      tomahawk-1.1.5.jar
      ajax4jsf-1.1.1.jar
      richfaces-3.0.1.jar
      oscache-2.3.2.jar

      Now if I include myfaces-all.jar, all the ajax calls work fine, but fileUpload will not work (UploadedFile field will be null). If I remove myfaces-all.jar fileUpload function works good, but all the ajax call will not work anymore.

      Does anyone have any idea why this happens and how to resolve the problem?

      Thanks!

        • 1. Re: Help! RichFaces + MyFaces weird problem

           

          "rulinsun" wrote:
          one page there is a fileUpload function using t:inputFileUpload.


          Sorry, I have forgotten my crystal ball at home today and do not see what is on your page pretty clearly. If you try to have a t:inputFileUpload inside the form sending by Ajax, just even do not try. Browser (any kind) restricts this feature (just a obvious security reason)

          • 2. Re: Help! RichFaces + MyFaces weird problem

            Sorry, I didn't stated clearly. On the fileupload page, there was no Ajax. But we had some other pages in same application using Ajax. In which all the ajax functions didn't work without myfaces-all.jar.

            • 3. Re: Help! RichFaces + MyFaces weird problem

              Sounds like some configuration issue. Do you have any error messages/stacktrace? May be you missing some other classes that was included into myfaces-all.jar?

              • 4. Re: Help! RichFaces + MyFaces weird problem

                I removed tomahawk-1.1.5.jar, included myfaces-all.jar, and changed
                extensionsFilter class config from

                <filter-name>extensionsFilter</filter-name>
                <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>

                To:
                <filter-name>extensionsFilter</filter-name>
                <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>

                Then both ajax pages and fileupload page worked. However, I don't know why org.apache.myfaces.webapp.filter.ExtensionsFilter in tomahawk-1.1.5.jar broke the ajax functions.

                Thanks anyway!