|
From: Peter K. (JIRA) <no...@sp...> - 2009-11-02 21:59:10
|
[ https://jira.springsource.org/browse/RCP-618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47829#action_47829 ]
Peter Karich commented on RCP-618:
----------------------------------
Ah, further (a lot ;-)) investigation shows that ShuttleList wasn't able to show entities with a duplicate name.
In my case I had Person->Course and one person had two Courses which had the same name, but where different.
Only one of the Course was listed.
Now the problem was (and is?) is following:
1. initial set will change my other component due to an explicit propertylistener
2. now a PropertyChangeListener will fire again a changeevent, because of ShuttleList.setSelectedIndices and so my component also only shows one!
Another performance problem could be that on every setSelectedIndicies the method JList.setSelectedIndices will be called and trigger N*changeevents.
E.g. if there are 10 Courses for one person it will trigger the first event with one course, a second event with 2 courses and so on.
> ShuttleList will fire change events on setup
> --------------------------------------------
>
> Key: RCP-618
> URL: https://jira.springsource.org/browse/RCP-618
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Sandbox
> Affects Versions: 1.1.0
> Reporter: Peter Karich
> Assignee: Lieven Doclo
>
> Is the following bug already fixed:
> http://forum.springsource.org/showthread.php?t=18733 ("I see some dirtiness issues.")
> ?
> This happens to me too. I am filling the shuttlelists' with initial 'selected' values and it will fire a lot of ListSelectionEvent's
> although this should not happen on the initial set-up, I think.
> see org.springframework.richclient.form.binding.swing.ShuttleListBinding -> ListSelectedValueMediator
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|