2009/6/25 Przemysław Wojnowski <przemyslaw.wojnow...@nask.pl>:
> My point is that the current implementation of Grid#setupDataSource()
> uses getAvailableRows() to calculate exact values for start and end
> indices. Shouldn't this be responsibility of GridDataSource?

Nice points in the whole message. :)
One solution would be to create another interface, because Grid needs
to know the number of available rows (regardless if before or after
prepare()) and changing GridDataSource now would break backward
compatibility quite badly.

> IMHO there is no need for special value. It's just matter of the current
> implementation of Grid#setupDataSource().

You're suggesting the reversal of invokating order of prepare() and
getAvailableRows()? I don't see any way of Grid working without
getAvailableRows(), as it's needed to handle paging.

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to