On Wed, Mar 15, 2023 at 2:16 PM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote:
> Ok. Then I will create an issue... Things I will try to achieve: > > > - Upload to a resource in an asynchronous non page blocking request > - Add an optional way to block the user from leaving the page while the > upload is happening > - Ways to cancel the upload > - Adapt the upload progress bar to work with this new "component" and > improve its code as in some corner cases it is producing client side > errors > (I created an issue for that some time ago). > - Maybe useful too: create a web socket based progress bar, as the > upload progress bar now works pulling the server every second. > > Shall this work be done for 10.x only or two for 9.x? I think both would be > good. > Both is fine! I think it would be good also to add an example to wicket-examples that uses a smart JS uploader, llike in the blog. This way you will verify that the new APIs are easily extendable. > > On Wed, Mar 15, 2023 at 1:59 PM Martin Grigorov <mgrigo...@apache.org> > wrote: > > > On Wed, Mar 15, 2023 at 12:25 PM Ernesto Reinaldo Barreiro < > > reier...@gmail.com> wrote: > > > > > Hi, > > > > > > In our application we are heavily using web socket push (repainting web > > > wicket components via web-socket push). One problem we found is that in > > > some pages we have some uploads and those uploads can be very large, > and > > > while they are happening the page is "frozen" and no new web socket > > > messages are received. Because of that, I have implemented a custom > > upload > > > to a wicket resource. In essence some adaptation of > > > > > > > > > > > > https://github.com/martin-g/blogs/blob/master/file-upload/src/main/java/com/mycompany/fileupload/AbstractFileUploadResource.java > > > > > > > > > But I also had to adapt the upload progress bar in order to be able to > > > report progress upload. Would this be something interesting to have in > > > a "generic" way in Wicket itself? > > > > > > > +1 > > I think it would be a good addition! > > > > > > > > > > > > > > > -- > > > Regards - Ernesto Reinaldo Barreiro > > > > > > > > -- > Regards - Ernesto Reinaldo Barreiro >