But the listener still can't work after the file uploaded.
Code: Select all
<p:fileUpload widgetVar="uploader" height="48" width="48"
image="../../resources/images/icons/browse.png" customUI="ture"
fileUploadListener="#{agentInvoiceController.handleFileUpload}" auto="true"
allowTypes="*.xls;" description="Excel" update="growl"/>
Code: Select all
public void handleFileUpload(FileUploadEvent event) {
JsfUtil.addSuccessMessage(event.getFile().getFileName() + " upload successfully!");
}
In showcase it seem not work both. The message should be show when the file upload successful.
Who can provide the success code?
Terry