Why is it that for the below code, when I use t:commandButton
it works fine and in case of a4j:commandButton
it gives NullPointerException
on uploadedFile.getInputStream()
?
<h:form enctype="multipart/form-data">
<t:inputFileUpload value="#{fileUploadController.uploadedFile}"/>
<t:commandButton action="#{fileUploadController.insertFile}"/>
</h:form>