2 Replies Latest reply on Aug 24, 2011 10:55 AM by lessonz

    Rolling back to 3.3.3.Final, action listener problem

    lessonz Newbie

      Okay, I'm trying to roll back to 3.3.3.Final to get some of the functionality fileUpload lost.  I have a fileUpload component:

       

      <rich:fileUpload fileUploadListener="#{uploadBean.listener}"

                              id="upload" acceptedTypes="#{uploadBean.acceptedTypesString}"

                              immediateUpload="#{uploadBean.immediateUpload}"

                              maxFilesQuantity="#{uploadBean.maxFilesQuantity}"

                              allowFlash="true">

      </rich:fileUpload>

       

      UploadBean has a method with this signature:

       

      public void listener(final UploadEvent event) throws Exception {}

       

      When run, I get "The class 'com.example.UploadBean' does not have the property 'listener'." If I comment out the fileUpload component altogether, I get similar errors from other action listeners. Notice how it's complaining about a property rather than method.

       

      I think the problem is probably with my web.xml. Attached is a close approximation of my web.xml. The only real differences are I changed the name and have removed some application specific context parameters. (The SAMPLE skin is a custom one present in the project.)

       

      And my faces-config.xml:

       

      <?xml version='1.0' encoding='UTF-8'?>

      <faces-config xmlns="http://java.sun.com/xml/ns/javaee"

                    version="2.0">

          <application>

              <view-handler>org.ajax4jsf.application.AjaxViewHandler</view-handler>

          </application>

      </faces-config>

       

      Any help would be greatly appreciated. Thanks.