Hi,
Sorting:
the column is sorted using the OGNL expression provided in its
definition. For example 'status:id' will sort the status column by its id.
Display:
By default, the column displays the toString() of the value of the OGNL
expression above. If there is difference between sorting and display,
however, the display can be overridden by defining a Block in your page
with the name '<column id>ColumnValue' that defines how the column
should look like. For example:
<span jwcid="[EMAIL PROTECTED]">
<span jwcid="@Insert"
value="ognl:components.table.tableRow.status.description"/>
</span>
This will display the field description in the status column, but the
sorting will be done as described above.
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]