This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF web DB" Watch "JSF web DB" New topic
Author

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: http://aspose.com/file-tools
 
subject: JSF web DB