a4j:commandButton给出NullPointerException,其中包含t:inputFileUpload

时间:2013-02-21 15:15:10

标签: file-upload jsf-2 ajax4jsf tomahawk

为什么对于以下代码,当我使用t:commandButton时,它工作正常,如果是a4j:commandButton,它会在NullPointerException上提供uploadedFile.getInputStream()

<h:form enctype="multipart/form-data">
    <t:inputFileUpload value="#{fileUploadController.uploadedFile}"/>
    <t:commandButton action="#{fileUploadController.insertFile}"/>      
</h:form>

0 个答案:

没有答案
相关问题