Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 239104 - Incorrect value on combo after selection
Summary: Incorrect value on combo after selection
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.2 M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: qx-closed
Keywords:
: 219300 (view as bug list)
Depends on: 257022
Blocks:
  Show dependency tree
 
Reported: 2008-07-01 07:42 EDT by Hugo Ferreira CLA
Modified: 2009-04-08 05:46 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Ferreira CLA 2008-07-01 07:42:08 EDT
Build ID: I20080617-2000

Steps To Reproduce:
I'm having the following problem when implementing a combo with these kinds of values: >10 or <10.

1. Create a combo with these two values: < 10 and > 10
2. Open the combo and select one of the elements.
3. If I select the first value the combo will show &lt; 10

The only problem (I suppose) is that the data is no shown as it should.


More information:
Here is a piece of code where this can be seen:

<code>
final Display display = PlatformUI.createDisplay();
final Shell s = new Shell(display, SWT.SHELL_TRIM);
s.setText("Combo Example");
s.setBounds(10, 10, 640, 480);
s.setLayout(new FillLayout());
       
Composite c = new Composite(s,SWT.NONE);
c.setLayout(new GridLayout());
Combo combo = new Combo(c, SWT.READ_ONLY | SWT.DROP_DOWN);
GridData gdCombo = new GridData(70, SWT.DEFAULT);
gdCombo.horizontalAlignment = SWT.FILL;
gdCombo.verticalAlignment = SWT.TOP;
gdCombo.grabExcessVerticalSpace = false;
combo.setLayoutData(gdCombo);
combo.add("> 10");
combo.add("< 10");
       
s.layout();
s.open();
while (!s.isDisposed()) {
    if (!display.readAndDispatch()) {
        display.sleep();
    }
}
</code>
Comment 1 Ralf Sternberg CLA 2008-07-04 06:39:47 EDT
Filed qx bug 1032: Empty items in ComboBox are too small
http://bugzilla.qooxdoo.org/show_bug.cgi?id=1032
Comment 2 Ralf Sternberg CLA 2008-07-07 06:05:42 EDT
Oops, there is a mistake in the previous comment. The correct qooxdoo bug is 1033: Entities displayed in ComboBox text field after selection
http://bugzilla.qooxdoo.org/show_bug.cgi?id=1033
Comment 3 Ralf Sternberg CLA 2008-12-11 06:54:08 EST
The issue has been fixed in qx-0.7.4 and is not reproducable anymore.
Comment 4 Ralf Sternberg CLA 2009-04-08 05:46:57 EDT
*** Bug 219300 has been marked as a duplicate of this bug. ***