Re: GWT: browse files on the server-side
Well, the RPC approach seems like a very straightforward way to go.
Have a command that takes a String as an argument (the path to the
directory of interest), and returns a Collection of Strings (the files
and directories in the directory of interest). Or you could return a
Map, with relevant metadata as the key (i.e. "File", "Directory"), and
a Collection of Strings as the value.
Greg
On Mar 10, 2:59 am, "Natalie.Lawrey" <admin....@gmail.com> wrote:
> Hi
> Any suggestions?
>
> /* I know that java.io.File is not serializable over the network BUT
> in my app I definitely need to present end-user list of files residing
> on the server (not all - but in one directory).
>
> First idea that come to my mind is to just send through RPC call file-
> names (plain strings) - but I'm not sure whether it's a good way to
> go.
> */
>
> Regards
> Natalie
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home