Is it possible to sort by the data in the column, not by what's
displayed on the screen?  Here's my dilemma, I have a table that shows
mail messages and uses a friendly format for dates (If the date is
today, it shows the time the message was received, if it was this year
it shows the Abbreviated Month and Day, Otherwise it shows it in a
simple 01/01/2001 format.  To achieve this little bit of magic, I just
use a simple JSP EL Function, so my column looks like:

<display:column ...>${a:friendlyDate(message.receivedDate)}</display:column>

If I put the sortable="true" in there it sorts on the data displayed,
which isn't very useful.

If I put the property="receivedDate" it ignores the formatted display
in the body.

I was hoping I could do something like:

<display:column sortable="true"
property="receivedDate">${a:friendlyDate(message.receivedDate)}</display:column>

And it would use the defined property internally (for sorting and
such) and display the body of the tag, but that doesn't seem to be the
case.  Is there any way to make this happen?  Thanks.
  (*Chris*)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to