File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF web DB

 
hani Ibrahim
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic