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

Bug 316424

Summary: List component isn't created when it is invisible
Product: [RT] RAP Reporter: Yury <swimmer_86>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan, markus.duft, stefan.roeck
Version: 1.3   
Target Milestone: 1.4 M1   
Hardware: All   
OS: All   
Whiteboard: sr131
Attachments:
Description Flags
List bug snippet
none
fix tbuschto: iplog+, ivan: review?, rsternberg: review+

Description Yury CLA 2010-06-10 04:00:31 EDT
Created attachment 171611 [details]
List bug snippet

The problem is when the List component is placed on the invisible composite. Here is the example when it is placed on an inactive TabItem. The dialog will not response and can not be closed after been opened.
The Firebug write to console the following:
org.eclipse.swt.widgets.List: Element must be created previously!

The snippet is attached.
Comment 1 Markus Duft CLA 2010-06-23 04:11:47 EDT
i too have this problem in a rather complex application (a framework actually). we have a text input field, which displays a drop-down list to provide completion proposals (you know the trick ;)). when i try to use that field with RAP, i get the "org.eclipse.swt.widgets.List: Element must be created previously!" message in firebug.

i have no idea how to tackle the problem... any hints?
Comment 2 Tim Buschtoens CLA 2010-06-23 05:29:17 EDT
Created attachment 172490 [details]
fix

This should fix at least the first problem described.
Comment 3 Markus Duft CLA 2010-06-23 06:05:28 EDT
wow - that was fast :) i can confirm that my list works perfectly with this patch! thanks!
Comment 4 Ivan Furnadjiev CLA 2010-06-30 07:20:57 EDT
Applied patch to CVS.
Comment 5 Stefan Röck CLA 2010-09-07 07:16:43 EDT
Could you please apply this patch to the 1.3 maintenance branch? Otherwise a JS error is thrown if the conditions described above are true. Thanks, Stefan.
Comment 6 Ralf Sternberg CLA 2010-09-07 08:24:30 EDT
(In reply to comment #5)
> Could you please apply this patch to the 1.3 maintenance branch? Otherwise a JS
> error is thrown if the conditions described above are true. Thanks, Stefan.

+1. I think it's safe to apply this patch to the SR.
Comment 7 Ivan Furnadjiev CLA 2010-09-07 08:35:27 EDT
Applied patch to 1.3 maintenance branch.