I am trying to use richfaces file upload and the fileUploadListener is not invoking the listener in my backingbean.
Code in my xthml
<rich:fileUpload fileUploadListener="#{fileUploadBackingBean.uploadFile}"
maxFilesQuantity="#{fileUploadBackingBean.uploadsAvailable}"
id="uploadfls"
immediateUpload="#{fileUploadBackingBean.autoUpload}"
acceptedTypes="pdf,vnd.ms-excel,msexcel,xls" allowFlash="#{fileUploadBackingBean.useFlash}">
</rich:fileUpload>
BackingBean code
@ManagedBean(name = "fileUploadBean")
public class FileUploadBean {
public void listener(FileUploadEvent event) throws Exception {
System.out.println("listener");
}
}