JFileChooser-like component

Hi all,

I wasn’t really sure where to put this post so I decided on add-ons because I am looking for something additional.

I am looking for a component, much like the Swing JFileChooser component, that will allow me to browse and select files that are located on the server. The vaadin Upload component only allows browsing the file system of the client.
My overall goal is to have the user be able to select a file (or multiple files) from the server to do some work with. I would like the solution to be as close to Windows Explorer as it can get.

Thanks in advance for any advice,
Jacob

Hi,

as far as I know there’s no such add-on available, but no doubt people have implemented similar things. It should actually not be too difficult - just use a Table (or a TreeTable depending on how you want to handle folders) inside a Window, add the proper buttons etc. and use the FileSystemContainer as the container for the Table.

This of course required that whatever you have running your vaadin application must have file access to any locations on the disk you want to expose to the user.

You might want to take a look at this demo for some ideas:
http://demo.vaadin.com/treetable/ImageBrowser

The source code is here:
http://dev.vaadin.com/svn/addons/TreeTable/demo/src/com/vaadin/addon/treetable/ImageBrowser.java

Thank yor for the reply.

This is a great idea! and it doesn’t seem to difficult as you said. Also thanks for the example. I will defiinitely give this a try and post back with some results.

Thanks again,
Jacob