File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSF
Author
how to populate dropdown in jsf thru database values?
Angellika desai
Greenhorn
Joined: Nov 06, 2011
Posts: 8
posted
Nov 06, 2011 10:41:40
0
hey thr..
i m cmpltly new to jsf.. n its like terrible dream for me right now..
i want to know.. how to populate drop down in jsf from the valueds from database? please i want code...
thnaks in advance...
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
I like...
posted
Nov 06, 2011 11:08:53
0
Please read
UseRealWords
and
NotACodeMill
.
and avoid making entire post in bold letters, because it wont look good. people may just ignore your post !
Coming to your question, jsf has <h:selectOneMenu/> tag for your need!
and Welcome to JavaRanch Angellika desai!
Angellika desai
Greenhorn
Joined: Nov 06, 2011
Posts: 8
posted
Nov 06, 2011 12:46:32
0
i would take care.. thanks for informing..
and yes i know this tag but
problem is how to get data from database into the drop down?
Hebert Coelho
Ranch Hand
Joined: Jul 14, 2010
Posts: 754
I like...
posted
Nov 06, 2011 14:32:55
0
Angellika desai wrote:
problem is how to get data from database into the drop down?
You will need a list.
Create a method that will get the data from your database.
With this list, you will send the itens to your select one menu.
In this post, I show how to put your classes into a select menu.
JSF: Converter and Bean AutoComplete
[
uaiHebert.com
] [
Full WebApplication JSF EJB JPA JAAS with source code to download
]
One Table Per SubClass
[
Web/JSF
]
Angellika desai
Greenhorn
Joined: Nov 06, 2011
Posts: 8
posted
Nov 09, 2011 22:57:24
0
Thanks to all for your replies..i hope i get it worked soon..
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: how to populate dropdown in jsf thru database values?
Similar Threads
populate dropdown list from table of database
how to populate data from xml document into database
SCJD Assignment
how to populate value in combo box
regarding JTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter