Is there something I am missing? Here is the generated html code But the problem is, that the inputfile component tries to create an iframe, which should be loaded from uploadHtml of course there is no such page. The second input item, and the borders ar just fpr debugging purposes. Log.error("Unable to render progress", e) Percent = file.getFileInfo().getPercent() InputFile file = (InputFile) event.getSource() If(inputFile.getStatus() = InputFile.UNKNOWN_SIZE)įacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, "Filesize void destroy() indicate that the request size is not specified. If(inputFile.getStatus() = InputFile.SIZE_LIMIT_EXCEEDED)įacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, "File too big") InputFile.getFileInfo().getException().printStackTrace() įacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, "Please select a File") If(inputFile.getStatus() = InputFile.INVALID) invalid file, happens when clicking on upload without selecting a "File uploaded successfully name: #0 content/type: #1", fileName, contentType) String contentType = inputFile.getFileInfo().getContentType() įacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, String fileName = inputFile.getFileInfo().getFileName() If(inputFile.getStatus() = InputFile.SAVED) InputFile inputFile = (InputFile) event.getSource() Log.info("upload.uploadPicture() action called") State = PersistentFacesState.getInstance() Private PersistentFacesState state = facesMessages Import class UploadBean implements Log log I have created my own Stateful SessionBean, which exposes all the necessary methods.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |