Package org.primefaces.event

Examples of org.primefaces.event.FileUploadEvent


        String clientId = fileUpload.getClientId(context);
        Part part = request.getPart(clientId);

        if(part != null) {
            fileUpload.setTransient(true);
            fileUpload.queueEvent(new FileUploadEvent(fileUpload, new NativeUploadedFile(part)));
        }
  }
View Full Code Here


        String clientId = fileUpload.getClientId(context);
        FileItem file = request.getFileItem(clientId);
           
        if(file != null) {
            fileUpload.setTransient(true);
            fileUpload.queueEvent(new FileUploadEvent(fileUpload, new DefaultUploadedFile(file)));
        }
  }
View Full Code Here

        UploadedFile uploadedFile = new DefaultUploadedFile(file);

                if(fileUpload.getMode().equals("simple"))
                    fileUpload.setSubmittedValue(uploadedFile);
                else
                    fileUpload.queueEvent(new FileUploadEvent(fileUpload, uploadedFile));
      }
    }
  }
View Full Code Here

    if(multipartRequest != null) {
      FileItem file = multipartRequest.getFileItem(clientId);
     
      if(file != null) {
        UploadedFile uploadedFile = new DefaultUploadedFile(file);
        fileUpload.queueEvent(new FileUploadEvent(fileUpload, uploadedFile));
      }
    }
  }
View Full Code Here

    if(multipartRequest != null) {
      FileItem file = multipartRequest.getFileItem(fileUpload.getInputFileId(facesContext));
     
      if(file != null) {
        UploadedFile uploadedFile = new DefaultUploadedFile(file);
        fileUpload.queueEvent(new FileUploadEvent(fileUpload, uploadedFile));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.primefaces.event.FileUploadEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.