You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Régis Piccand <gm...@piccand.com> on 2003/11/01 00:40:25 UTC

Re: contrib:Table generates a BindingException - TableColumnRenderer problem - ClassCassException ?

On Fri, 31 Oct 2003 14:32:33 -0500, Erik Hatcher 
<er...@ehatchersolutions.com> wrote:



> On Friday, October 31, 2003, at 01:46  PM, Régis Piccand wrote:
>> The getTableModel() seems fine :
>>
>>
>> public ITableModel getTableModel()
>> 	{
>> 		if (_tableModel == null)
>> 		{
>> 			Invoice[] openedInvoices = getOpenedInvoices() ;
>> 			SimpleTableColumn[] cols = getColumns() ;
>> 			tableModel = new SimpleTableModel(openedInvoices, cols) ;
>> 		}
>> 		return _tableModel;
>> 	}
>
> what does getColumns do?
>
>
>
It returns a SimpleTableColumn[]

private SimpleTableColumn[] getColumns()
	{
		SimpleTableColumn dateCol = new SimpleTableColumn("date", "Date") ;
		SimpleTableColumn custCol = new SimpleTableColumn("customer", "Clients") 
;
		return new SimpleTableColumn[]{dateCol, custCol} ;
	}


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org