File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes How to fetch particluar data from database using 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 "How to fetch particluar data from database using JSF?" Watch "How to fetch particluar data from database using JSF?" New topic
Author

How to fetch particluar data from database using JSF?

Muhammad Firdaus
Greenhorn

Joined: Jan 30, 2013
Posts: 1

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

Joined: Jun 25, 2001
Posts: 16158
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to fetch particluar data from database using JSF?