Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318116

Summary: DirectoryDialog missing in RAP
Product: [RT] RAP Reporter: Jeffery Yuan <yuanyun.kenny>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: CLOSED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: yuanyun.kenny
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jeffery Yuan CLA 2010-06-27 04:01:58 EDT
Build Identifier: 

There is a need for selecting a directory using the native directory dialog from 
within the browser, but no implementation of DirectoryDialog available in RAP at the moment. 

This requirement should be very common in web application, especially for the RCP to RAP application.
Providing the DirectoryDialog can save us from having to write a custom widget and makes single-sourcing easier.

Reproducible: Always
Comment 1 Ralf Sternberg CLA 2010-06-28 14:33:24 EDT
Which file system should be displayed by this dialog? The client's file system is not accessible due to security restrictions. Exposing the server's file system to clients would be a security hole that the platform should not open.
Comment 2 Jeffery Yuan CLA 2010-06-29 05:26:57 EDT
DirectoryDialog should be used to show client's file system.

This request is based on 250697, it requests to develop FileDialog to let user  select a file in client file system.

I took it for granted that, it would be easy to implement a DirectoryDialog to select a directory in client file system. But after google search, seems there is no easy solution to open a DirectoryDialog in web application yet.

After a second thought, seems that in web application there is no good reason to let user select file in client system except to upload a file - In this case, we can use Upload Widget in RAP application.
and no good reason to select directory in client system except to download file.

in my rap application, user should enter the directory path in server side.
yes, as you said, it's unsafe to expose server's file system.
So a text box suffices in my RAP version.

So I would close this defect.
Thanks very much for your quick answer.