Local or remote? I don't think you can read from files where the
browser is running, but you could call a remote service that reads a
file on the server and returns data to the client. I'm getting ready
to implement something like that to populate a help dialog.
GWT compiles to javascript and thus can't do it either.
It's like asking an iPod to make a phone call. It's physically
impossible.
Some might argue that the new iphone is just an ipod that can make
phone calls :)
...
"Local storage of client preferences and data is nothing new but, like
DHTML, is being rediscovered as web applications squeeze as much as
they can out of currently deployed browsers and popular plugins. Just
like other web technologies such as JavaScript and CSS, support for
local data files addressable from a web page varies by browser.
JavaScript libraries such as Dojo Storage abstract each storage method
into a single JavaScript call with appropriate storage based on
available resources (thanks Brad Neuberg!), but it's useful to take a
look at the low-level options and their respective limitations"
http://www.niallkennedy.com/blog/archives/2007/01/ajax-performance-local-storage.html
Generally speaking, the act of porting a java app over to a webpage
using GWT is NOT easy. There are alternatives you should probably be
looking at; a couple of GWT-like projects out there make the browser
really look like a java app (including swing-like boxes and such).
This will be rather off-putting to someone expecting a web page but
it'll probably be way less effort, those toolkits are designed to be
used to port apps like that.
On Apr 2, 6:35 pm, "Andre Freller" <andre.frel...@gmail.com> wrote:
> Reinier, that is no correct. A signed applet has full functionality
> including read/write local files and downloading/uploading to other sites.
>
> Regards,
> Freller
>
Such as...?
Further, can anyone suggest me the best means to convert a stand alone
Java based application to Web based application. Our stand alone Java
application involves File Handling, numerous Event Listeners, Tree
structures, tab controls etc. In future we also plan to use databse.
Looking forward to valuable inputs.
There's an SWT for javascript out there, which can be googled.
I remember seeing something similar for swing, but I can't find it.