You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tomáš Drenčák <to...@gmail.com> on 2005/08/21 08:44:26 UTC

contrib Table Date formatting

Hello,
I have a list of items where one column is of the type Date. I'd like
to show it in certain format like dd.MM.yyyy. Is there a special way
to do this in contrib:Table specification in columns binding or I have
to use Block and another component to format (e.g. Insert with format
binding).

I'm doing it this way:

<component id="tabulka" type="contrib:TableView">
    <binding name="source" value="dochadzka.getKlient(klient,
zaciatok, koniec)"/>
    <binding name="columns" value="name:[0], date:[1], presence:[2], !action"/>
</component>
      
<component id="myDate" type="Insert">
  <binding name="value" value="components.tableRows.tableRow[1]"/>
  <binding name="format" value="new java.text.SimpleDateFormat('dd.MM.yyyy')"/>
</component>

<component id="dateColumnValue" type="Block"/>

Thanks
        tomas

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