[Spring-JIRA] Created: (RCP-618) ShuttleList will fire change events on setup

View: New views
3 Messages — Rating Filter:   Alert me  

[Spring-JIRA] Created: (RCP-618) ShuttleList will fire change events on setup

by JIRA noreply@springframework.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-rcp-dev mailing list
Springframework-rcp-dev@...
https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev

[Spring-JIRA] Commented: (RCP-618) ShuttleList will fire change events on setup

by JIRA noreply@springframework.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://jira.springsource.org/browse/RCP-618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47822#action_47822 ]

Peter Karich commented on RCP-618:
----------------------------------

The problem with this is that if I have another component which binds on the same property (e.g. I have objA.getBObjects and I'll bind ShuttleList to the bobjects of objA)
the other component will be notified that the bobjects had changed, which leads to inconsistent state of the bobjects property

> 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

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-rcp-dev mailing list
Springframework-rcp-dev@...
https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev

[Spring-JIRA] Commented: (RCP-618) ShuttleList will fire change events on setup

by JIRA noreply@springframework.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ 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

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-rcp-dev mailing list
Springframework-rcp-dev@...
https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev