Vaadin 8 Grid & Pivot

Hi everybody,
does anybody know if there is a good example around for Pivot tables with Grid ? For example I have Products & Ingredients with an m:n relation mapped in a ProductIngredients table , so each product does not have a mandatory value for each potential ingredient.
So I would like to have all products in rows and all potential ingredients as columns filled with whatever is in the database for a product.
Do I have to fall back to PropertySets or is there any other way to obtain this more easily ?
Cheers

Joern

How about showing the ingredients in Details row instead? That way you can even load them lazily only when needed.

-Olli

Hi Olli,
thanks for your reply ! Merely the main purpose of this pivot table is to compare ingredients. So they are always needed…

Cheers

Joern

Right. I guess then you need to use some flexible bean type like Map<String, String> for your Grid.

-Olli