If you do not supply a GridDataModel, the Grid component generates one from
the first object in its source. I believe this is documented in its
JavaDoc..

On Sunday, November 4, 2012, membersound wrote:

> Can a list for a t:grid contain several implementations of an object? I
> just
> want to make sure the following is in general possible?
>
>
> class Fruit;
> class Apple extends Fruit
> class Banana extends Fruit
>
> <t:grid source="fruits" row="fruit"/>
>
> class Page {
>         List<Fruit> fruits;
>         Foo fruit;
> }
>
> Result atm:
> Render queue error in BeginRender[Page:grid_0.rows.gridcell]:
> Banana cannot be cast to Apple.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Grid-display-several-implementations-of-an-object-tp5717635.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org<javascript:;>
> For additional commands, e-mail: users-h...@tapestry.apache.org<javascript:;>
>
>

-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Reply via email to