in my ApplicationBean1.java class I have an Option[] attribute years and a filling method:
public void buildYearOptions(){
int initialYear = 1900;
int currentYear = Calendar.getInstance().get(Calendar.YEAR);
int i = 0;
for (int y = initialYear; y< currentYear; y++){
Option op = new Option(y, Integer.toString(y));
years[i] = op;
i++;
}
}
And this is my jsp page using icefaces:
<ice:selectOneMenu id="selectOneYearMenu" partialSubmit="true"
style="height: 24px; left: 238px; top: 94px; position: absolute; width: 72px;visibility: visible;"
visible="true">
<f:selectItems id="selectOneMenuYearItems" value="#{ApplicationBean1.years}"/>
</ice:selectOneMenu>
My problem is that the years from 1900 to currentyear(2010) are not showing up in the dropDownList (selectOneMenu).
Aan someone help me figure this out?