Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3345838 By: pcberg
Greetings, I have a similar problem to this fellow: https://sourceforge.net/forum/forum.php?thread_id=1348801&forum_id=249318 ("Sorting Numbers" by lawnboles on 2005-09-09 06:09) but in my case what I'm running into is that the display:column body is a formatted value (dollar amounts). So I'm trying to use sortProperty so that my values are sorted by the original numbers (and not the formatted dollar amounts). My problem is that I'm stuck with a for:each loop (and thus my name= attribute isn't the one from display:table) because the datastructure I use for my columns is something I inherited from another team. sortProperty doesn't seem to respect paramName (and there is no sortName). This is my code: <display:table name="${reqSearchResults}" id="row" export="true" pagesize="12" requestURI="Report.do?methodToCall=refresh&SomeMoreJunk"> <c:forEach items="${row.columns}" var="column"> <display:column class="datacell" style="text-align: right" sortable="${column.sortable}" title="${column.columnTitle}" paramName="column" sortProperty="propertyNumber"> <fmt:formatNumber type="currency" value="${column.propertyNumber}"/> </display:column> </c:forEach> </display:table> which gives this error: org.displaytag.exception.RuntimeLookupException: LookupException while trying to fetch property "propertyNumber". Cause: Error looking up property "propertyNumber" in object type "org.kuali.core.web.uidraw.ResultRow".. Any suggestion / workaround? If the answer is not using the ResultRow datastructure and instead using something more natural to displaytag (thus getting rid of for:each), then that's fine. At least I asked on this forum and can tell that my management. ;) Thanks!! Philip ______________________________________________________________________ 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 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

