【发布时间】:2011-08-26 09:00:12
【问题描述】:
我有一个简单的问题,希望解决方法也这么简单……
我的 selectManyListbox 中的所有项目都已默认选中,我不想要这个。
我到处寻找可能的选择,但一无所获。
有人可以帮帮我吗?
<h:selectManyListbox
value="#{detailModel.afterObject.businessObjectAttributeSpecifications}"
size="10">
<f:selectItems
value="#{detailModel.getSetAsList(detailModel.afterObject.businessObjectAttributeSpecifications)}"/>
</h:selectManyListbox>
提前谢谢你 弗朗切斯科
【问题讨论】:
-
请贴出列表框的源代码。可能 value 属性和 selectItems 有问题。
-
这里是关于列表框的代码:
codecode -
将代码复制到您的问题中并添加了答案。