I'm load multiple file list using field input of type file. Problem is i want to delete some of them from original list before form post. Couse FileList is immutable in js and I can't create new input to post with overridden FileList (js security reasons) I must build array with files that I want to submit.
But i don't know how to post and receive it using Wicket.Ajax.post (due to the above-mentioned I can't post form)
Standard fileUploadField get request as instance of IMultipartWebRequest on form post. How to do same using Wicket.Ajax.post ?
Wicket.Ajax.post() is a wrapper for http://api.jquery.com/jquery.ajax/. It just gives you hooks where you can manipulate the request or response: onBefore, onPrecondition, onSuccess, etc. So if you find a way to do what you need with plain jQuery then just add this logic in onBeforeSend hook.