[richfaces-issues] [JBoss JIRA] (RF-13060) Issue in initializing the list of selected items in a Picklist
Jean-Noel Colin (JIRA)
jira-events at lists.jboss.org
Fri Jun 14 10:41:54 EDT 2013
Jean-Noel Colin created RF-13060:
------------------------------------
Summary: 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
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