Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=2822550
By: dimc

Hi,

I have a column that is a derived value - its value is the elapsed time of a
message being processed, and we record start and end times.  Atm I have this
in my table:

  <display:column style="width: 40px;" sortable="true"
title="Time"><console:processingTime name="ibusReq" /></display:column>

which is almost what I want.  The processingTime tag simply formats the time
as 0.541 for example.

This is fine, apart from the problem that the time is treated as alpha-numeric,
and as such sorting doesn't work.  What I would like to do instead is something
like:

<display:column style="width: 40px;" sortable="true" title="Time"
decorator="com.mycompany.TimeDecorator" />

but I'd then be faced with the same problem, as the Decorator interface requires
you to return a String, rather than an object.  Am I missing something, or should
I be able to return an object here?

cheers
dim

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249318


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to