• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT: Ajax file upload?

 
Aljaxey Dashkevich
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have seen in GWT upload file widget but it is only wrap HTML tag. But I am interesting about true AJAX widget for file upload which may support resume upload (very useful for large files). And can do upload in background.

Is there are any available in GWT? If you know about plans regarding such widget in GWT?

Below link to example of true AJAX file upload:
http://www.codeproject.com/useritems/AJAXUpload.asp
 
Robert Hanson
author
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aljaxey.

I have a bit of an issue with them calling that project AJAXUpload. I think it would be more appropriate to call it ActiveXUpload.

In any case, you could use the AJAXUpload project from GWT by using the JavaScript Native Interface. GWT allows your Java code to interact with JavaScript, so anything that can be done in JS can be done in GWT.

As for GWT specific projects like this, there are none that I know of.
 
Adam Tacy
author
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aljaxey,

I guess they call it AJAXUpload since it uses the HttpRequest object; but I do agree with Rob, it's not exactly AJAX - and it is limited to ActiveX platforms.

Aljaxey, you're right, the GWT widget is a wrapper to the standard html component - but that is the case (and benefit) for all GWT widgets.

Just thinking out loud without too much constraint - I wonder if you could do the same with a small Java applet and some JSNI to a GWT application. On second thoughts, I could just imagine the security issues you would have to resolve to get it to work......

//Adam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic