How to use PrimeFaces p:fileUpload? Listener method is never invoked or UploadedFile is null / throws an error / not usable

前端 未结 10 2357
孤独总比滥情好
孤独总比滥情好 2020-11-21 05:04

I\'m trying to upload a file using PrimeFaces, but the fileUploadListener method isn\'t being invoked after the upload finishes.

Here is the view:

10条回答
  •  你的背包
    2020-11-21 05:10

    One point I noticed with Primefaces 3.4 and Netbeans 7.2:

    Remove the Netbeans auto-filled parameters for function handleFileUpload i.e. (event) otherwise event could be null.

    
        
    
        
    
    

提交回复
热议问题