我正在使用richfaces的组合框。检查以下代码
<rich:comboBox id="combo" value="#{thebean.selectedValue}" enableManualInput="false"> <f:selectItems value="#{thebean.listOfValues}" /> </rich:comboBox>
然后只使用一个普通的下拉列表,没有组合框。使用 h:selectOneMenu .
h:selectOneMenu