This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSF and the fly likes creating HtmlSelectOneListbox dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "creating HtmlSelectOneListbox dynamically" Watch "creating HtmlSelectOneListbox dynamically" New topic

creating HtmlSelectOneListbox dynamically

ganesh vinayaka

Joined: Aug 18, 2005
Posts: 4
do any one among you know how to create a HtmlSelectOneListbox using java code in JSF. I have done it. It is displayed on browser. but the problem is i am not getting the java.util.List values in the component on the browser. How to go about it using java code.?
please reply.
thanking you
Rick Beaver
Ranch Hand

Joined: Dec 14, 2004
Posts: 464
A quick example

... in a backing bean - which we will call myBean

Then in your JSP

ph34r my 133t j4v4 h4><0r1ng sk177z
I agree. Here's the link:
subject: creating HtmlSelectOneListbox dynamically
It's not a secret anymore!