this tutorial will be about xhtml using list item using java class. First, you initialized the index.xhtml the dynamic value of form.yearItems. <h:selectOneMenu value=”#{form.yearOfBirth}” required=”true”> <f:selectItems value=”#{form.yearItems}” /> </h:selectOneMenu> 2. Initialized the java class for getYearItems (remember! variable for yearItems must be declared getYearItems) and then return to other variables (integer or String) public Collection<SelectItem> getYearItems() …
Recent Comments