我有一個簡單的問題,我希望解決方案也是如此簡單的項目......JSF - selectManyListbox出廠時已選定的
我selectManyListbox的項目一切都已經默認每次選擇我不想這個。
我到處搜索可能的選項,但我什麼也沒找到。
有人可以幫我嗎?
<h:selectManyListbox
value="#{detailModel.afterObject.businessObjectAttributeSpecifications}"
size="10">
<f:selectItems
value="#{detailModel.getSetAsList(detailModel.afterObject.businessObjectAttributeSpecifications)}"/>
</h:selectManyListbox>
預先感謝您 弗朗西斯
請郵寄列表框的源代碼。也許值屬性和selectItems有問題。 –
這是關於列表框的代碼:'code' h:selectManyListbox>'code' –
Francesco
將代碼複製到您的問題中並添加了答案。 –