This content has been marked as final.
Show 1 reply
-
1. Re: How to call bean method after finish file upload
patch_78 Apr 30, 2013 8:29 AM (in response to patch_78)I found a solution. I have to use parameter 'listener' not 'actionListener' like:
<rich:fileUpload fileUploadListener="#{fileUploadBean.listener}" id="upload"
maxFilesQuantity="50">
<a4j:ajax event="uploadcomplete" render="localHttpPNL" listener="#{addDatasetBean.afterFilesUpload}" />
</rich:fileUpload>
Also the method takes AjaxBehaviorEvent argument like:
public void afterFilesUpload(AjaxBehaviorEvent event) {
//
// doing some tasks
}
patch