Richfaces选项列表值不会从数据库右侧填充

时间:2012-11-10 12:50:57

标签: richfaces

我正在使用richfaces 3.3.3。我已经制作了选择列表,其中选择值来自数据库。但是它没有在选项列表的右侧显示这些值。这是我的代码

<rich:pickList  sourceListWidth="250" targetListWidth="250"
value="#{users.selectedValues}" >
   <f:selectItems value="#{users.availableValues}" />
</rich:pickList>

选定值是对象类型列表,可用值是选择项列表。 请任何人帮助我谢谢 问候 Asim satti

1 个答案:

答案 0 :(得分:3)

<rich:pickList value= expression should return List/array you want to get on the RIGHT side (selected items)

<f:selectItems value= expression shall return WHOLE List/array (that is, both selected and unselected items)

它对我有用