Menu

Dates, sorting, and i18n

Help
Mike Traum
2005-10-11
2012-10-09
  • Mike Traum

    Mike Traum - 2005-10-11

    I need to be able to sort Date columns and they need to be i18n. I can certainly use jstl fmt to get them into i18n, but then sorting will fail.

    If I use a ColumnDecorator, I cannot access the Locale because it or the request is not sent as an argument, so it will sort correctly but I can not i18n it.

    I'm using displaytag withing Struts.

    Any ideas?

    TIA,
    Mike

     
    • juapar2

      juapar2 - 2006-01-17

      Do u have a example of how to use <formatDate>and sortProperty to sort date. I am not sure of what code to write.

      Thanks

       
    • Matt Raible

      Matt Raible - 2005-10-12

      You can use the <fmt:formatDate> w/in a <display:column> tag and use a "sortProperty" attribute to make sorting work properly.

       
      • Mike Traum

        Mike Traum - 2005-10-12

        I totally missed the sortProperty attribute.

        Thanks much,
        Mike

         

Log in to post a comment.