Hi Lance,
Like I said in the previous email, grid can only take a list from a
Filter component in my current system (since the filter only return a
list to the outside, nothing else). Modified a component will require a
lot of crazy talking (which I wanna take away of) to other developers
and PM.
On 12/17/2013 4:29 PM, Lance Java wrote:
Tapestry's grid expects a GridDataSource as the "source" parameter.
What you may not know is that tapestry has a TypeCoercer to make things
easy for us. If you provide a list as the source of a grid, tapestry will
happily TypeCoerce the list to a GridDataSource (which is what is happening
in your case).
So, instead of passing a list as the "source" you should pass a custom
GridDataSource implementation. You might find it easy to extend (or
delegate to) CollectionGridDataSource.
You'll need to take care with paging.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org