File upload richFaces fileUploadListener根本没有被调用

File upload richFaces fileUploadListener根本没有被调用,file-upload,richfaces,File Upload,Richfaces,我正在使用richfaces fileUpload上载xls文件。下面是用于上传的代码丰富的模式面板 <rich:modalPanel id="cashflowImportPanel" width="360" height="150" zindex="500" autosized="true"> <f:facet name="header"> <h:output

我正在使用richfaces fileUpload上载xls文件。下面是用于上传的代码丰富的模式面板

<rich:modalPanel id="cashflowImportPanel" width="360" height="150"
                zindex="500" autosized="true">

                <f:facet name="header">
                    <h:outputText value="Confirm" />
                </f:facet>

                <f:facet name="controls">
                     <h:graphicImage value="../../static/images/close.jpg" style="cursor:pointer" onclick="Richfaces.hideModalPanel('cashflowImportPanel')"  />     
                </f:facet>

            <h:panelGroup id="cashflowimportpanelGrp">

                    <h:outputText value="#{bundle['cashflowImportSupportedFiles.label']}" />                    

                        <rich:fileUpload 
                        maxFilesQuantity="1" 
                        immediateUpload="true" 
                        acceptedTypes="xls"
                        id="fileUploadComp" 
                        listHeight="63px" 
                        listWidth="350px"
                        fileUploadListener="#{fileImportBean.importFile}"
                        uploadData="#{fileImportBean.uploadedData}" 
                        allowFlash="false">
                        <a4j:support 
                        event="onclear" 
                        action="#{fileImportBean.importFile}" 
                        />
                       </rich:fileUpload>
            <rich:spacer height="30"/>

                <s:selectOneMenuAjax
                 prop="selectedForecastMonth"
                 key="forecastMonthForImport" 
                 bean="#{cflowForecastBean.cashflowForecast}"
                 id="forecastMonthIdForImport" 
                 selectItems="#{cflowForecastBean.forecastMonth}" 
                 req="true"
                 actionBean="#{cflowForecastBean}" 
                 method="getForecastCycleMonth" 
                 />                         
                <a4j:commandButton 
                    id="importBtn"
                    oncomplete="#{rich:component('cashflowImportPanel')}.hide();"
                    action="#{fileImportBean.saveFileExportImport}"
                    value="#{bundle['import.label']}"
                    styleClass="button"
                    status="waitStatus" 
                    reRender="importBtn,msgPanelGrp">
                            <f:setPropertyActionListener value="xls"
                                target="#{fileImportBean.importFileType}" />
                        </a4j:commandButton>
                <a4j:commandButton
                            onclick="#{rich:component('cashflowImportPanel')}.hide();"
                            value="#{bundle['no.label']}" 
                            styleClass="button"
                            immediate="true" />

            </h:panelGroup>

    </rich:modalPanel>

但是,我发现fileUploadListener根本没有被调用。我使用RichFaces3.3.1和Tomcat6.X服务器。同样的功能在我的项目的其他部分也可以正常工作,但仅在这种情况下不起作用。有人能帮忙吗?

RichFaces的哪个版本以及您使用的服务器?@Makhiel我使用RichFaces 3.3.1和tomcat 6.X服务器。同样的功能在我的项目的其他部分也可以正常工作,但仅在这种情况下不起作用。这个页面有点问题,我没有得到我想要的东西。没有
uploadData=“#{fileImportBean.uploadedData}”
public void importFile(UploadEvent event) {
    --------
}