Yes, FileSystem and FileWriter are HTML5 Javascript APIs that are available to browsers that support them.
And yes, with JSNI. Overlays are described here: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html For example, the FileSystem object described at http://dev.w3.org/2009/dap/file-system/pub/FileSystem/#the-filesystem-interface would have an overlay like: public final class FileSystem extends JavaScriptObject { protected FileSystem() { } public native String getName()/*-{ return this.name; }-*/; public native DirectoryEntry getRoot()/*-{ return this.root; }-*/; } On Sep 14, 1:59 pm, Marcin Olejarczyk <[email protected]> wrote: > Thank for you answer. I am quite a new in Web technologies. > > When you mention about FileSystem, FileWriter for HTML5 do you mean > JavaScript API available to use in web browser? > How have you created your own overlay types for the FileSystem / > FileWriter objects - Did you use JSNI for that? > > On 14 Wrz, 16:59, Derek <[email protected]> wrote: > > > > > > > > > Modern HTML5 should allow something along those lines, but browser > > support is going to be pretty hit or miss. I haven't tried exactly > > what you describe, but you should check out FileSystem, FileWriter, > > and blob support (http://www.html5rocks.com/en/tutorials/file/ > > filesystem/). In Chrome at least, you can create a file in a temporary > > space, write text to it, and expose that as a filesystem: URL for the > > user to click to download. > > > None of that is reflected in GWT currently. I created overlay types > > for the few FileSystem / FileWriter objects I needed on the project > > I'm working on, and you could do similarly. Or you could just sling > > some JSNI. > > > Hope that helps, > > Derek > > > On Sep 14, 8:28 am, Marcin Olejarczyk > > > <[email protected]> wrote: > > > Hi, > > > > Is there any possibility to generate *.txt file and give the user the > > > opportunity to download this file locally by typical download web > > > browser window only by executing GWT client code without any > > > involvement on the server side. > > > > Shortly: Click the button, generate file on open download window only > > > by the client side. > > > > Thx for any help > > > > /Marcin -- 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.
