Hi !!
I've found this old thread:
http://www.nabble.com/RE%3A-DataView-%28extensions%29-tf1287013.html#a3423281
I hope this link works OK, just in case I quote here the relevant part:
> I have come up with my own subclass of DataTable and implementation of
> IDataProvider to display any arbitrary database java.sql.ResultSet.
-----
> The code is actually quite compact; when I'm finished I'll post it to the
> list if there is any interest.
I'm trying to fill a DataTable with the ResultSet obtained from
executing a query:
cs = con.prepareCall("{ call Region_SelectAll }");
rs = cs.executeQuery();
After I while I discovered that there is no easy or evident way of
filling the DataTable from a ResultSet, I have to provide custom
DataProviders which implement IDataProvider. In case there is some work done
on a generic approach, even if incomplete or undocumented, I'm interested in
taking a look at it.
If there are new or better ways to do this that came up after this
thread, I'm also interested in knowing. Having a way of easily handling the
database resultset and a list of the resultset headers (column titles) would
be great, the more generic, the better.
Thanks !!
Daniel
--
View this message in context:
http://www.nabble.com/Question-regarding-old-post-%28ResultSet-and-DataTable%29-tf4314874.html#a12285785
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]