xhtml:
Code: Select all
<p:panelGrid columns="2">
People
<p:selectOneMenu value="#{peoplePM.currentPerson.comment}">
<f:selectItems value="#{peoplePM.commentList}" />
</p:selectOneMenu>
</p:panelGrid>
Code: Select all
private String[] commentList;
public String[] getCommentList(){
String[] strArr = {"Eins", "Zwei", "Drei"};
commentList= strArr;
return commentList;
}