Esempio n. 1
0
 public void listener(FileUploadEvent event) throws Exception {
   UploadedFile item = event.getUploadedFile();
   UploadedImage file = new UploadedImage();
   file.setLength(item.getData().length);
   file.setName(item.getName());
   file.setData(item.getData());
   files.add(file);
 }
  public void listener2(FileUploadEvent event) {
    RichBean.logToPage("* upload listener2");
    UploadedFile file = event.getUploadedFile();

    if (file != null) {
      files.add(file);
    }
  }
 public void listener(FileUploadEvent event) throws Exception {
   file = event.getUploadedFile();
   files.add(file);
 }