Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF and DB2 interaction

 
Ayub ali khan
Ranch Hand
Posts: 394
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can any one point me to a sample example showing a database interaction with JSF application.

Best Regards

Ayub.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's fully transparent for the JSF. You can put the plain JDBC commands in the backing bean or even use Hibernate. To pass the data between the JSF application and the database, it's a good practice to use DTO's - Data Transfer Objects. Basic example:

JSF

MyBean

MyData
[ October 10, 2006: Message edited by: Bauke Scholtz ]
 
Ayub ali khan
Ranch Hand
Posts: 394
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your tips Bauke !!

I understood your concept.

Best Regards
Ayub
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic