AbstractFileUpload fileUpload = (AbstractFileUpload) component;
MethodExpression completionListener = fileUpload.getCompletionListener();
if (completionListener != null) {
completionListener.invoke(
context.getELContext(), new Object[]{
new UploadCompletionEvent(fileUpload, filesItems)});
}
}
Rendering.addJsonParam(jsonObj, "allUploaded", allUploaded);
Rendering.addJsonParam(jsonObj, "fileSizes", fileSizes);
return jsonObj;