I have a method that returns arrayList which stores a List of Country names from Database using Session Bean. Please see the code below -
Now, I have given the definition for this java class file in faces-config.xml and now how best can I call this list in my JSF - JSP Page ?
I know we can call this Array List in DataTable but then I can't embedd DataTable tags in selectOneListbox because that would give each country in seperate combo boxes. So, if there are 110 countries , it lists each country in 110 seperate combo boxes.
So, I devised this way of calling -
But this also doesnt seem to be viable solution because there is now way of calling index values in value tag and I can't keep on writting seperate selectItem for all Countries.
Please tell me that how best can I call the Array List of Values in Select One List Box ?