As I see your problem, you want to show a simple FileDialog like in SWT to just choose file and get its path?
If so, in RWT currently have no such widget.
You might find out some useful information via these links:
when you are using JEE Compatibility mode you must open your dialogs in
a non blocking way - use DialogUtil#open( Dialog dialog, DialogCallback
dialogCallback ) instead of Dialog#open.
On 6/11/2012 5:13 PM, M L wrote:
> I want to create a simple FileDialog with just RWT, but without RAP.
> So if I call "fileDialog.open" I get the following error message:
> Problem accessing /rap. Reason:
> The SimpleLifeCycle does not support Display#sleep().
> This is cause by FileDialog#runEventLoop(shell). How can I skip this?
> Please help me! Thanks
Are you using the FileDialog implementation that is in the incubator or are you using the deprecated sandbox Upload widget? There is no UploadEvent in the incubator version, only FileUploadEvent. And the UploadPanel is an internal class.
If you are using the dialog from the incubator, then you should have the org.eclipse.rap.rwt.supplemental.fileupload bundle also running in your application (since it is a dependency on the FileDialog bundle).
Have you confirmed that the file is being uploaded?
I've tried with the FileDialog but also with only the FileUpload widget and only the UploadPanel. But it seems that the the file is not uploaded at all. In the browser the green progressbar stops at round about 30%. How can I check if the FileUploadEvent is triggered??
I've used this code but nothing happens...
public void uploadProgress(FileUploadEvent event)
// handle upload progress