[richfaces-issues] [JBoss JIRA] (RF-13060) Issue in initializing the list of selected items in a Picklist

Pavol Pitonak (JIRA) jira-events at lists.jboss.org
Fri Aug 23 04:13:26 EDT 2013


    [ https://issues.jboss.org/browse/RF-13060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798760#comment-12798760 ] 

Pavol Pitonak commented on RF-13060:
------------------------------------

Verified in 4.3.4, it's ready to be closed.
                
> Issue in initializing the list of selected items in a Picklist
> --------------------------------------------------------------
>
>                 Key: RF-13060
>                 URL: https://issues.jboss.org/browse/RF-13060
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-selects
>    Affects Versions: 4.3.2
>            Reporter: Jean-Noel Colin
>            Assignee: Brian Leathem
>             Fix For: 4.3.4, 5-Tracking
>
>   Original Estimate: 30 minutes
>  Remaining Estimate: 30 minutes
>
> A picklist uses two list of items: a list of available items and a list of selected items. If this second list has to be initialized, it has to contain the same object instances as those in the available items. So both lists can't be built from two separate DB queries, since they would refer to distinct objects, and in this case, the list of selected items would always be empty. Upon request of  Brian Leathem, I have created this JIRA issue after providing a sample application that illustrates the problem. 
> /Items.xhtml is the frontend
> Item is the element to be displayed in the list
> ItemBean is the managed bean that builds the available and selected lists
> ItemConverter is the converter
>  
> As you see in ItemBean's constructor, depending on the way I build the selectedList, it gets displayed properly or not
>  
> the project is using ivy for dependencies, and is build using ant tasks
> ant resolve-dependencies
> ant package
>  
> should build the war file in /dist

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list