How about having displaytag render implementations of the following interface? This will allow scrollable resultsets and other custom data retrieval methods to be used with displaytag.
CustomRowDataSource will be an interface encapsulating the collection to be displayed, with the following methods:
/ go to next row, return true if has next row, false otherwise /
public abstract boolean next();
/ return the row marked by the cursor /
public abstract Object getRow();
/ return the total number of results /
public abstract int getTotalResults();
/ navigate cursor to the appropriate row /
public abstract void goToRow(int rowNumber);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How about having displaytag render implementations of the following interface? This will allow scrollable resultsets and other custom data retrieval methods to be used with displaytag.
CustomRowDataSource will be an interface encapsulating the collection to be displayed, with the following methods:
/ go to next row, return true if has next row, false otherwise /
public abstract boolean next();
/ return the row marked by the cursor /
public abstract Object getRow();
/ return the total number of results /
public abstract int getTotalResults();
/ navigate cursor to the appropriate row /
public abstract void goToRow(int rowNumber);