5 Replies Latest reply on Feb 25, 2014 6:58 AM by Mohammad Weshah

    FileUploadEvent listener reset the list value

    Mohammad Weshah Novice

      Hello All,

      i make an example of upload file from richfaces showcase it is working successfully , but i notice if i changed the backing bean to viewscope the files list inside the FileUploadEvent listener will be rest every time that i upload new file , the code as follow :


      protected List<UploadedImage> files = new ArrayList<UploadedImage>();
      public void FileUploadlistener(FileUploadEvent event) throws Exception {
              UploadedFile item = event.getUploadedFile();
              UploadedImage file = new UploadedImage();


      but when i changed the scope to session the files still contain the old files, is it mandatory to the backing be session or there is something wrong ?