2013-05-20 67 views
0

我想使用richfaces文件上傳和fileUploadListener沒有調用我的supportbean中的監聽器。豐富的面孔4.2.3文件上傳不調用backing bean方法

代碼在我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代碼

@ManagedBean(name = "fileUploadBean") 
public class FileUploadBean { 


public void listener(FileUploadEvent event) throws Exception { 
    System.out.println("listener"); 
    } 
} 
+1

我希望你至少有啊:形式也比空其他一些輸出texte測試的println(); –

回答

相關問題