Hi
Have you tried to use the column tag without the decorator? With something
like this for example

<display:column sortable="true"
headerClass="sortable" title="Contract Start"
comparator="mypackage.displaytag.ContractStartDateComparator">
  <s:date name="%{#attr.contract.startDate}" format="yyyy-MM-dd" />
</display:column>

(where s:date is struts 2 tag, but you can of course use JSTL or any
other library).

One would presume that using comparator and decorator for the same column
is allowed but I have not tried it myself yet...

And of course if you can't make the comparator work you can always fall
back to not using it at all with something like this

<display:column sortable="true"
headerClass="sortable" title="Contract Start">
 <!-- <s:date name="%{#attr.contract.startDate}" format="yyyy MM dd HH:mm:ss" 
/> -->  <s:date name="%{#attr.contract.startDate}" format="yyyy-MM-dd" />
</display:column>

but this code is pretty messy :)


Ilari





> Date: Sun, 25 Jan 2009 15:15:38 -0800
> From: Developer Dude <[email protected]>
> Reply-To: [email protected]
> To: [email protected]
> Subject: Re: [displaytag-user] Custom Comparator compare() method for column
>     not being called??
>
> Nobody has any ideas??
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>



-- 

"Friends come and go, but enemies accumulate."

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to