• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to fetch particluar data from database using JSF?

 
Muhammad Firdaus
Greenhorn
Posts: 1
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I want to ask how to fetch data from database for a particular data in JSF Framework?(e,g;enter product id and get that product's details only)

And I want to know how these fetching process can be done by using DTO and DAO?(not fetch directly from Bean class)

Thank you.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Muhammad!

JSF has no database capabilities of its own. Whatever access you do with a database would be done in the same way that you would in a non-JSF program.

The DTO object is actually obsolete if you are using up-to-date ORM techniques. With EJB3, there is no longer a need to maintain a separate DTO from the Entity, the Entity can serve as its own DTO.

DAO's can continue to be used, although I don't reference DAO's directly in my JSF code, i have a separate application layer I put that stuff into and my backing beans call into that layer. Most of what's in my JSF backing beans is GUI-related.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic