Package org.primefaces.model

Examples of org.primefaces.model.DefaultUploadedFile


        if(file != null) {
            if(file.getName().equals("")) {
                fileUpload.setSubmittedValue("");
            } else {
                fileUpload.setTransient(true);
                fileUpload.setSubmittedValue(new DefaultUploadedFile(file));
            }
        } 
  }
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

   
    if(multipartRequest != null) {
      FileItem file = multipartRequest.getFileItem(clientId);

      if(file != null) {
        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.model.DefaultUploadedFile

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.