File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF web DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF web DB" Watch "JSF web DB" New topic

JSF web DB

hani Ibrahim
Ranch Hand

Joined: Sep 06, 2006
Posts: 182
Dear all,
i need to build a jsf page to be mirror(synchronized with table in DB).so when i press F5=refresh,it will get to me up to date data from this table.
i dont want dao,or controller. just one page has a query and show the table.
Is that possible?if yes how can i made the jsf knows how to use the driver ,url of DB , and username as well as password of this DB.

Thanks alot for trying to help.
A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
If I understood your question correctly, you want to access database directly from the JSP page containing JSF components. To my knowledge it is not possible. But, you can have your database related code in your backing bean and call this code in your getter method of your JSF component, so the refresh will get the latest data.
I agree. Here's the link:
subject: JSF web DB
It's not a secret anymore!