コード例 #1
0
ファイル: FileUploadBean.java プロジェクト: jigg4/richfaces
 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);
 }
コード例 #2
0
  public void listener2(FileUploadEvent event) {
    RichBean.logToPage("* upload listener2");
    UploadedFile file = event.getUploadedFile();

    if (file != null) {
      files.add(file);
    }
  }
コード例 #3
0
 public void listener(FileUploadEvent event) throws Exception {
   file = event.getUploadedFile();
   files.add(file);
 }