0 Replies Latest reply on Jan 11, 2011 6:57 AM by abcd123456

    Richfaces fileUpload on cancel event

    abcd123456

      Hello,

       

      I have a small issue when using fileUpload component from richfaces.

       

      Here are the steps to reproduce the issue:

      - I press the Add button, add the required file(eg file.txt), Cancel the file(file.txt), press again the Add button and add the same file(file.txt).

       

      The file is not added the second time. But if I select a different file(file2.txt) the fileUpload component works just fine.

       

      What I've tried is to rerender the control oncancel event.

       

      Here it is my component. Please help me.

       

      <rich:fileUpload fileUploadListener="#{uploadMB.uploadListener}" id="upload">

          <a4j:support event="onuploadcanceled"  reRender="upload"/>

      </rich:fileUpload>

       

      Thank you!

       

      Alex