Thursday, December 30, 2010

Re: Choosing a file in local directory

if you app must be a web app then maybe you could go  the HTML5 way ?   i ve hard HTML5 has a File api. I personally never used it.
But  if it  possible for you to deploy you  app as a desktop  application then you could  pack it as a   Aode AIR  application. This will  enable local file access for you. The library here can help you  do that http://code.google.com/p/gwt4air/.
Another solution would be the Titanium runtime located here : http://www.appcelerator.com/. I m working on a GWT API  for Titanium rigt now. In the mean time you might have to go the pure JS way or write  a wrapper youself.

If you hav any question on  feel free to ask

Regards,

Alain

2010/12/30 jc <jc.chandru@gmail.com>
Ok, then how can i access a file in local directory, is there is any
other way to access or read and write a file? reply me please

On Dec 30, 3:38 pm, Didier Durand <durand.did...@gmail.com> wrote:
> Hi,
>
> GWT Java code gets converted to Javascript. Javascript then runs in
> the sandbox of your browser: you can't access the local file system
> because of this sandbox architecture.
>
> regards
> didier
>
> On Dec 30, 8:27 am, Rubini <rubinikuttyomku...@gmail.com> wrote:
>
>
>
>
>
>
>
> > jc <jc.chandru@...> writes:
>
> > > I check the fileupload widget, but it show only the filename correctly
> > > not full path.
> > > it show c:/fakepath/filename. I need to read and wirte a file in a
> > > local directory. Send me a
> > > sample code if you have.
>
> > > On Dec 28, 8:43 pm, Ben Imp <benlee...@...> wrote:
> > > > You would be looking for the FileUpload widget, which just wraps a
> > > > html file input element.
>
> > > > -Ben
>
> > > > On Dec 28, 2:15 am, jc <jc.chan...@...> wrote:
>
> > > > > Hi,
> > > > > i am new to GWT, but i know java. I am using GWT in Eclipse. for
> > > > > selecting a file in local directory in java, we use JFileChooser.
> > > > > but i don't know to select a file in a local directory in GWT. can any
> > > > > one help please.
>
> > Hi,
>
> > can anyone help me to read and write a file in a local directory . The file
> > Upload widget is by default having a text box. how to disable the text  box? .
> > In chrome the text box is not editable while in IE i am able to edit it. how to
> > disable the editing feature of file Upload-TxtBox  in various browsers
>
> > -Ruby

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


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

No comments:

Post a Comment