| Summary: | [Text] Pressing "Enter" is not sending the correct value from the field in FireFox 3 | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Jeff <jeff.lau> |
| Component: | JFace | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Tim.Whittington |
| Version: | 1.2 | ||
| Target Milestone: | 1.3 M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
I can confirm this with Controls Demo -> Dialogs Tab -> Input Dialog in FF 3.0.12 on Ubuntu. Tested the same thing on Windows Vista with FF 3.5.2 works as expected. Seems like an environment dependent issue. Please test it with FF 3.5.2. Reopen it if the bug persist in FF 3.5.2. This consistently fails with 3.0.x (tested 3.0.10 and 3.0.14). Chrome (OS X), IE 7/8, FF 3.5 (Windows and OS X), Safari 4 and 3 (OS X) all work fine. Fixed by fixing bug 292487. |
First of all this bug seems to be happening with firefox 3 only. This is steps to reproduce the bug: 1. Open up an InputDialog, with some initial values. 2. Type some text in the text field of the InputDialog. 3. Press Enter Key on the Keyboard (as oppose to clicking on Ok on the screen) What you will find is that the text from the text field is NOT actually getting sent back in the request. Here's a code snippet to reproduce the problem: public int createUI() { final Display display = PlatformUI.createDisplay(); Shell shell = new Shell(display); InputDialog inputDialog = new InputDialog(shell, "TITLE", "MESSAGE", "initialValue", null); inputDialog.open(); MessageDialog.openInformation(shell, "MESSGAE", inputDialog.getValue()); } After you enter some value and hit "enter" on the input dialog, the message dialog should open up and tell you what you have entered. You will see that when you are using firefox 3, regardless of what you have entered in the InputDialog, the messageDialog will always say "initialValue". I.e. The text you entered was not getting sent to the server.