wood burning stoves 2.0*
The moose likes JSF and the fly likes retrieve data from database using jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "retrieve data from database using jsf" Watch "retrieve data from database using jsf" New topic
Author

retrieve data from database using jsf

asmaa kellal
Greenhorn

Joined: May 22, 2011
Posts: 18
Hello
I want an example of source code to retrieve data from database
i have a database (oracle) name as db1 it's contain table 'author' composed of three columns idauthor(primary key),, name ,and city

I want after enter value in textbox according idauthor i retrieve name ,and city
can you help me please
thanks
Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

Doing a call to the database in a JSF bean isn't any different from doing it in any other framework. Just use the same ODBC or Persistence you're used to.
asmaa kellal
Greenhorn

Joined: May 22, 2011
Posts: 18

I used jsp
here is my code


question how to use bean to retrieve data from database or how we can get "v" (enter value)
and show only the corresponding elements (using jsf)
Give me an example of code please
thanks

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retrieve data from database using jsf
 
Similar Threads
dynamically poplulate select menus based on first select menu
XML data collection
getting values in combobox from database without refreshing
Selection of datatype for storing images
How to delete and update sql table through JTable