JSF Tutorial #14 - Java Server Faces Tutorial (JSF 2.2) - JSF Forms and Drop-Down Lists - Part 2

preview_player
Показать описание
FULL COURSE: JSF Database Web Apps (40+ videos)

The premium course shows you how to connect to a database using JSF.

---

This JSF tutorial series will help you quickly get up to speed with JSF.

----

Follow luv2code:

---

Join my mailing list: Get early access to new tutorials.

---

Questions or problems with this JSF tutorial? Post them in the comments section below.

---

Want to suggest a video for this JSF tutorial? Leave a comment below. I'm always looking for new video ideas.

Let me know what video you'd like for me to create for this JSF tutorial.

---

FULL COURSE: JSF Database Web Apps (40+ videos)
Рекомендации по теме
Комментарии
Автор

Thanks

btw, My main language is not English, but your speaking is very fluently :)

coderonline
Автор

You can use an array instead of a list and bypass the no-arg contructor like this : String [] countries={"BRAZIL", "FRANCE", "JAPAN"};
with a getter : public String[] getCountries()
{
return countries;
}

edgareldy
Автор

why did you put the country arrayList inside the no arg constructor ?

mayfarouk
Автор

implemented your sample but got exception java.util.ArrayList cannot be cast to javax.faces.model.SelectItem

am using Tomcat 7advise?thanks

lillywang
Автор

why i can use ArrayList on @ManagedBean ? if i use "SelectOneManu" in ".xhtml" file i think it's eyes to load on web browser....

moinul_islam
welcome to shbcf.ru