3 Replies Latest reply on Nov 16, 2007 9:10 AM by Damian Harvey

    fileUpload doesn't support ajax submit?

    Dan Liu Apprentice

      I'm using ajax4jsf commandButton to submit the form and I've noticed s:fileUpload doesn't work with ajax submit. here is my code:

      <h:form enctype="multipart/form-data" id="myform">
       <s:fileUpload id="pictureUpload" accept="image/*" fileName="#{mycomponent.pictureName}"
       data="#{mycomponent.picture}" />
       <a:commandButton action="#{mycomponent.upload}" value="Upload" reRender="myform"/>