Hi,
you can add "=" expression in your table's columns definition and later
define your own custom column.
<static-binding name="columns" value="name,=statusColumn,date"/>
public ITableColumn getStatusColumn(){
SimpleTableColumn statusColumn = ....
statusColumn.setColumnComparator(yourComparator)...
return statusColumn;
}
i got this in TapestryTables. I forgot the site but it is contributed by John
Reynolds.
regards,
Gunna
On Wednesday 16 November 2005 10:03, Paul Rush wrote:
> Trying out contrib:Table for the first time... simple question (hopefully).
>
> I have a table with the following columns:
>
> Name - Status - Date
>
> The Status column is represented in my object model as an object that
> has an Integer Id field and a String description field.
>
> I want to sort on the Id, but display the description in the table.
> However the ITableColumnEvaluator only has one method to return a
> value to both sort on and display... getColumnValue. Am I missing
> something or is there a proper way to do this?
>
> Cheers!
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]