In the columns parameter leave the field as date
<binding name="columns" value="literal:1:ID:id, 2:Start  Datum:date"/>

In your html template, add this span:
<span jwcid="[EMAIL PROTECTED]">
    <span jwcid="@Insert"
       
value="ognl:@[EMAIL PROTECTED](components.myTable.tableRow.date)"
/>
</span>

This block is for customizing the appearance of a column - you can put
links, images, etc.
Sorting is always done with the value set in the 'columns' parameter.

Christian Mittendorf wrote:

>
> Am 22.11.2005 um 14:04 schrieb Jesse Kuhnert:
>
>> It's pretty easy to do :)
>
>
> Yepp, it really was. Thanks for your hint. I created a Formatter 
> utility class that I used for my ognl expression:
>
> <binding name="columns" value="literal:1:ID:id, 2:Start 
> Datum:@[EMAIL PROTECTED](date)"/>
>
> Works really nice, except... the automatic sorting does no longer 
> work, because the table is sorting the formatted Strings (using 
> german date formatting) instead of the date objects. The result will 
> look like this:
>
> ID        DATE 'v'
> 1         24.11.2005
> 4         19.10.2005
> 6         11.11.2005
>
> Does anybody have a hint how to format a date while keeping the sorting?
>
> Christian
>
>
>
>
>> On 11/22/05, Christian Mittendorf <[EMAIL PROTECTED]> 
>> wrote:
>>
>>> Hello!
>>>
>>> I've using a plain Table component from the contrib lib and I'd like
>>> to for format the date values of one column. How can I accomplish
>>> that? Does anybody have a nice example ready?
>>>
>>> Christian
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: tapestry-user- [EMAIL PROTECTED]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to