我正在用 jsf 和richfaces 做一个项目。有一个selectManyList。在 selectmanylist 中选择并保存后,SelectManyList 会再次打开。最后选择的项目在列表中被默认选择。但是我想阻止最后选择的项目。我能怎么做?
<td valign="top">
<h:panelGroup id="ajaxAvailableProductPanel2">
<h:selectManyListbox
size="#{pc_ExternalProviderFrag.callServerBackingBean.availableProductsSelectItemsSize}"
id="availableProductsListbox2"
style="width: 100%;"
valueChangeListener="#{pc_ExternalProviderFrag.callServerBackingBean.handleAvailableProductsListboxValueChange}">
<f:selectItems
value="#{pc_ExternalProviderFrag.callServerBackingBean.availableProductsSelectItems}" />
</h:selectManyListbox>
</h:panelGroup>
</td>