如何在 JSF 中编写下拉框?
最佳答案
To select one option
<h:selectOneMenu id="list1">
<f:selectItem itemLabel="Option 1" itemValue="1"></f:selectItem>
</h:selectOneMenu>
To select multiple option
<h:selectManyListbox id="list">
<f:selectItems value="#{optionBean.optionList}"></f:selectItem>
</h:selectManyListbox>
关于jsf - 如何在 JSF 中编写下拉框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1281531/