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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
You can use the <fmt:formatDate> w/in a <display:column> tag and use a "sortProperty" attribute to make sorting work properly.
I totally missed the sortProperty attribute.
Thanks much,
Mike