2) Now when I am doing same thing using ArrayList then it working fine.
JSP Part is : <h:selectOneMenu styleClass="selectOneMenu" id="menu1" value="#{pc_Index.selectedData}"> <f:selectItems value="#{pc_Index.arrayList}"/> </h:selectOneMenu>
Backing Bean : I am getting SelectItem[] from Method getData, I am explicitly converting SelectItem[] into ArrayList means I am adding one SelectItem at a time from for loop to arrayList. So It is working fine in JSP.
Can anybody have any idea regarding this error, Am I doing something wrong in my code? Please reply ASAP.