aspose file tools*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: data base connectivity from JSF