my dog learned polymorphism
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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
jQuery in Action, 3rd edition