File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Binding Datagrids Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Binding Datagrids" Watch "Binding Datagrids" New topic

Binding Datagrids

Terry Jeske

Joined: Apr 06, 2004
Posts: 17
In ASP.Net land, it is a simple matter to bind a datagrid to a record set. But I cannot seem to find a single example of this for JSF. WSAD has the ability to bind to a sql table with the IBM proprietary control. But I can find no examples on how to bind the results from a sql query to a datagrid.

Can someone point me to an example of this?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

This is from JSF In Action. There will be a method in the backing bean called getUserList() that returns some sort of collection of user objects.

[ April 21, 2005: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Mike Panahil

Joined: May 13, 2005
Posts: 3
I dont know about WSAD 5.x, but in RAD (new WSAD), you can bind objects, including collections to data tables just as easily.
I agree. Here's the link:
subject: Binding Datagrids
It's not a secret anymore!