2 Replies Latest reply on Jul 29, 2010 6:02 AM by Adi Katz

    rich:fileUpload listener is not being called

    Adi Katz Novice

      Hi,

       

      I am creating HtmlfileUpload component as follows:

       

      HtmlFileUpload box = new HtmlFileUpload();

      box.setFileUploadListener(FacesContext.getCurrentInstance().getApplication().createMethodBinding(
               "#{easap.upload}", new Class[] { UploadEvent.class }));

       

       

       

      My bean code is:

       

      public void upload(UploadEvent event){
              List<UploadItem> items = event.getUploadItems();
              System.out.println("hello123");

      }

       

       

       

      The multipart request is being sent to the server ( verified with firebug ) but my listener is never called.

       

       

      Any ideas ?

       

      Thanks

      Shandor