1 Reply Latest reply on Nov 19, 2010 4:05 AM by ilya_shaikovsky

    Rich:fileUpload cancel all request JS method

    atyauristen

      hey there everybody,

       

      I have a rich:fileupload component in my app. The problem is the following: sometimes I hide the component for some reason and when the hide is done, I want to cancel all the file upload requests populated in the list, so before upload was fired.

      Is there a way to achieve that by calling a JS function?

      I tried clear() but as far as I know it's not a cancel method but the same as I would push the clear all button after the upload is complete.

      I tried remove() also but it looks like it only works for a single entry and not all entries.

       

      I though to myself, it has to be a solution hidden before my eyes, so I'd like to ask you to share that with me if it exists!

       

      Thanks in advance!

       

      cheers,

      balázs

        • 1. Re: Rich:fileUpload cancel all request JS method
          ilya_shaikovsky

          you want to clear all the uploaded data? So it's should be done from the controls which depends on your case.. see richfaces-demo sample. There is cleaning button for example. If you just do not know where to put such call - provide please code with description of scenario according to it and we will see,.