This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF web DB  RSS feed

 
hani Ibrahim
Ranch Hand
Posts: 182
  • 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
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!