Thomas Spiegl wrote:
What if i the business logic returns a custom java.util.List, that
dynamically reloads data?
size() returns the total rowCount
get(i) would reload a new block of data if i is out of scope.
The List would need to know about the rows (HtmlDataScroller.rows)
displayed, so that reloading can work properly.
This should work with the current implementation.
But in a formal webtier/EJB situation, how could the List object work?
It would need to contain a reference to an EJB, and invoke methods on
that EJB to fetch more data as needed.
Having an EJB return an object containing a reference to itself which
gets invoked via List.get(i) is rather interesting - I can't decide
whether that would be acceptable design or not. It's certainly not
"obvious".
Regards,
Simon