Chuck, Build and pass your own BeanModel rather than relying on auto-creation from the source.
I hit the same issue. Jonathan > -----Original Message----- > From: Chuck Kring [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 31, 2008 6:55 PM > To: Tapestry users > Subject: Exception in grid component if source returns an empty list > > I have an application that pulls data from a remote database and > presents it in a Grid component. > Sometimes the database is not available and my access method returns an > empty arraylist. This triggers a bad-looking exception in tapestry 5: > > > org.apache.tapestry.ioc.internal.util.TapestryException > > Failure reading parameter model of component SelectRoom:grid: xxx -- > > no source to determine list type from > > > > location > > context:SelectRoom.tml, line 11, column 141 > > > I understand the issue - Tapestry cannot determine how to format the row > without a valid source object. I do think the grid component's behavior > is a bit harsh here. > > Any suggestions about how to a) avoid this or b) detect the condition > and replace the grid component layout with an appropriate error message? > > Thanks! > > Chuck --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]