Hi All,
 
  I am having issues with using the comparator attribute of the display:column tag. I have 2 objects that have a TemporalCellComparator associated with them, but when I sort the columns only one is using the comparator. Here is the chunk that displays the column:
 

<display:column class="infocell" sortable="${column.sortable}"

title="${column.columnTitle}" comparator="${column.comparator}"

maxLength="70"><c:out value="${column.propertyValue}"/></display:column>

 

Note: the column object is just a generic wrapper for the property. The comparator gets set in code based on the property datatype. I have verified the correct comparator is getting set for both timestamps, both in code and by writing out a debug ${column.comparator} statement on the jsp. The only difference between the 2 columns is in the result set the one that is not getting the comparator has a null in its first row. Does display tag only look at the first row of the result set and if the value is null ignore the comparator? On these rows where the value is null, the debug statement does not print out a value for the comparator, but on further rows where there are values there is a value for comparator. In code, the comparator gets set regardless if the row column has value or not, so I don't know why the comparator doesn't show up.

Has anyone ran into issues like this before? Any advice or a different approach I could try?

thanks,

Jerry Neal

Indiana University

 

 

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to