为什么对于下面的代码,当我使用它时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>