2

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>
dShringi
  • 1,497
  • 2
  • 22
  • 36
  • Not a duplicate, but it might be related to subject of the answer to [this question](http://stackoverflow.com/questions/10754300/tinputfileupload-not-uploading-the-file) somehow. – Fritz Feb 21 '13 at 15:31
  • @Gamb I've already checked all the question on SO related to `fileUpload`, even the question you've mentioned however I couldn't found my answer. So had to ask this ! – dShringi Feb 21 '13 at 15:35
  • 1
    Answer is same as this: http://stackoverflow.com/questions/10754300/tinputfileupload-not-uploading-the-file –  Jun 28 '13 at 19:54
  • @GuilhermeLemes Thanks for your response, I was able to figure out the cause then only. I just got confused due to the richfaces showcase. – dShringi Jun 29 '13 at 04:55

0 Answers0