Exemplo 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);
 }
Exemplo n.º 2
0
  public void listener2(FileUploadEvent event) {
    RichBean.logToPage("* upload listener2");
    UploadedFile file = event.getUploadedFile();

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