trsvax/tapestry-bootstrap — pull request #4 by jeje (2011-12-05 09:19:45+00:00)
Title: BeanGrid throws a NPE when the source is an empty list

This can be avoided by wrapping the ``` value = source.get(0); ``` with an if statement on the size of the source list.

But, this generates other errors later on with the ``` BeanDisplayLabel ``` which does not work with null objects...

This pull request reuses some of the Grid component "tricks" in order to display a label saying that there is no data if the source list is empty.