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

Bug 412667

Summary: [Combo] Set text selection by code does not work
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: tbuschto
Version: 2.1   
Target Milestone: 2.2 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ivan Furnadjiev CLA 2013-07-10 07:56:33 EDT
Reproducible with Controls Demo in all browsers - http://rap.eclipsesource.com/controlsdemo/controls#Combo
1. Select for example "Python" in the first combo
2. Fill text selection fields for example from 1 to 3 and press set button
3. Combo takes focus but selection is not applied
JSON protocol message looks fine, but not visual change on the client:
{"head":{"requestCounter":22},"operations":[["set","w2",{"activeControl":"w112"}],["set","w112",{"selection":[1,3]}],["set","w1",{"focusControl":"w112"}]]}
This is a regression.
Comment 1 Tim Buschtoens CLA 2013-08-29 09:27:27 EDT
Fixed with commit 252996596afdf6f8bb0ea16d6b9f36ff8827b857 (2.2M2).

Among other things the Text field checks for focus before rendering the selection, which is on the Combo widget, not the Text widget itself.