my dog learned polymorphism*
The moose likes GWT and the fly likes GWT: Ajax file upload? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT: Ajax file upload?" Watch "GWT: Ajax file upload?" New topic
Author

GWT: Ajax file upload?

Aljaxey Dashkevich
Greenhorn

Joined: Jun 22, 2007
Posts: 2
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

Joined: May 11, 2007
Posts: 34
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.


Robert Hanson
Co-Author GWT in Action
Adam Tacy
author
Ranch Hand

Joined: Jun 02, 2007
Posts: 37
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GWT: Ajax file upload?
 
Similar Threads
How do I wrap a Label in AWT?
Double buffered JFrame
Eclipse
c,c++development
highlighting of text