我有一个 Hashtable 我想在 selecteOneMenu 中显示它知道怎么做吗?
itemCat = new Hashtable<Integer,String>();
itemCat.put(0,"Functional");
itemCat.put(1, "Interoperability");
itemCat.put(2, "Load");
itemCat.put(3, "Performance");
itemCat.put(4, "Disponibility");
itemCat.put(5, "Security");
itemCat.put(6, "Usability");
itemCat.put(7, "Other");
<p:selectOneMenu value="#{projectRequirementManagementMB.selectedCat}" filter="true" filterMatchMode="startsWith" >
<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItems value=" {projectRequirementManagementMB.hereShouldbeCategoryValues}" />
</p:selectOneMenu>
任何想法都会被欣赏