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

Bug 321389

Summary: [BrowserFunction] returns immediatly when showing a dialog
Product: [RT] RAP Reporter: Philipp Leusmann <leusmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: tbuschto
Version: 1.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Philipp Leusmann CLA 2010-07-30 13:28:25 EDT
Build Identifier: 

When opening a Dialog from a BrowserFunction, the Javascript side does not wait for the dialog to close, but instead goes on immediatly.
This means, it is not possible for a BrowserFunction to request user input using a dialog and return the result.

As a workaround we currently use the HtmlResponseWriter to "inject" the result into the browser, which of couse leads to serious timing problems.

Reproducible: Always
Comment 1 Ivan Furnadjiev CLA 2010-08-09 04:44:53 EDT
I can confirm that it works in SWT, but not in RAP.
Comment 2 Ivan Furnadjiev CLA 2010-12-09 03:56:46 EST
This issue is complicated, because on the client (javascript) we have single-thread model - both browser function and UI work in the same thread. If we block the BrowserFunction on the client to wait for the result, the dialog (GUI) become unresponsive and the application is locked. The "injection" of the result is the only feasible solution.
Comment 3 Tim Buschtoens CLA 2014-04-08 05:22:52 EDT
It's not a critical issue, there seems to be no feasable fix, and there has been no activity for years. Closing this as wontfix.