One must always remember that all GWT code written in Java will eventually 
be Javascript, and thus can only do what Javascript can do. Javascript may 
not wander the user's machine, looking for and opening files - even opening 
a file that the user has pointed you at is off limits (without the use of 
flash, or some other plugin).

As far as I can tell, your use-case 1 is covered by the code you have 
outlined, and as I have indicated, use-case 2 cannot be done by javascript 
alone. Instead, consider having your user select the file, using a <input 
type="file" />, and upload the file to the server. Then, after the upload, 
if the server can make it available to the user, the code you've written can 
download and use it, as in use-case 1.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to