Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316424 - List component isn't created when it is invisible
Summary: List component isn't created when it is invisible
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: 1.4 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: sr131
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 04:00 EDT by Yury CLA
Modified: 2010-09-07 08:35 EDT (History)
3 users (show)

See Also:


Attachments
List bug snippet (2.08 KB, text/x-java)
2010-06-10 04:00 EDT, Yury CLA
no flags Details
fix (837 bytes, patch)
2010-06-23 05:29 EDT, Tim Buschtoens CLA
tbuschto: iplog+
ivan: review?
rsternberg: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.