This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes data base connectivity from JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "data base connectivity from JSF" Watch "data base connectivity from JSF" New topic
Author

data base connectivity from JSF

visu nath
Greenhorn

Joined: Sep 11, 2006
Posts: 2
Hi,
I am new to JSF Technology, i want to make an application using oracle database and JDeveloper as ID.

ie i want to get the values of emp table and update perticular emp table values.

how can i do this using JSF , any pointer for good books in JSF.

Please let me know.

Thanks,
Visu
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
JSF is a component based framework. A web framework came into play to ease up the web app development, to make all your code clear and readable, and so and so.
Why on the earth you want to mess up all, JSF with DB? Do you like spaghetti alot?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Java Server Faces In Action
Chris Schalk
author
Ranch Hand

Joined: Aug 31, 2006
Posts: 62
Originally posted by chittyvisu nath:
Hi,
I am new to JSF Technology, i want to make an application using oracle database and JDeveloper as ID.

ie i want to get the values of emp table and update perticular emp table values.

how can i do this using JSF , any pointer for good books in JSF.

Please let me know.

Thanks,
Visu


If you're using JDeveloper, building database enabled JSF apps is a piece of cake.. Checkout the tutorials at http://www.oracle.com/technology/products/jdev/index.html

Also our book - "JSF: The Complete Reference" covers building database or persistence architected apps with JSF.
-Chris
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
In most cases, its not recommended to create data service objects, like
ResultSets and RowSets, directly in your backing beans. For small apps it works well. Whereas using a separate class, which is an implementation of the Data Table Gateway pattern [Fowler, Enterprise Pattern Architecture], is more flexible because you can unit-test it and reuse it within different backing beans.

Thanks.
 
jQuery in Action, 2nd edition
 
subject: data base connectivity from JSF