Using format

ID Email Date Money
47452 email is dolores-vero@sadipscing.com 06-01-2010 0,142.00 $
62575 email is Stet-dolore@kasd.com 17-08-2009 0,747.00 $
61411 email is elitr-justo@labore.com 21-09-2009 2,772.00 $
76442 email is no-magna@sit.com 06-01-2009 2,799.00 $
31384 email is amet-voluptua@accusam.com 16-12-2009 3,386.00 $
84591 email is At-consetetur@consetetur.com 25-12-2008 3,696.00 $
4725 email is ea-At@nonumy.com 26-09-2010 6,154.00 $
85423 email is labore-est@et.com 07-03-2010 8,292.00 $
87326 email is dolore-amet@nonumy.com 21-05-2010 9,185.00 $
98610 email is Stet-sit@kasd.com 30-09-2009 9,407.00 $


You can use any valid java.text.MessageFormat pattern in the format attribute. Sorting will be based on the original object, not on the formatted String.

Note that errors due to an invalid pattern/object combination (for example trying to format a String like a number) will not be rethrown. Instead, an error log will be written and the original unformatted object displayed.

You can also use a format pattern along with column decorators (the pattern will be applied after the decoration).

  <display:table name="test">
    <display:column property="id" title="ID" />
    <display:column property="email" format="email is {0}" />
    <display:column property="date" format="{0,date,dd-MM-yyyy}" sortable="true"/>
    <display:column property="money" format="{0,number,0,000.00} $" sortable="true"/>
  </display:table>