I have tried to implement a Column Decorator instead of Table Decorator... and it works. ^_^
william rimbun <[EMAIL PROTECTED]> wrote:
william rimbun <[EMAIL PROTECTED]> wrote:
Hi, does anybody know how to sort the date in DD-MON-YYYY format?This is my sample code in the JSP file:<display:table name="clist" pagesize="8" defaultsort="1" defaultorder="ascending" sort="list" decorator="com.starhub.rapid.wrapper.DunningHistoryWrapper" >
......<display:column property="curedDate" title ="Completed Date" sortable="true" />
.......</display:table>In the Wrapper class, I have override the method : getCuredDate() to return in appropriate format:....public String getCuredDate()
{return this.dateFormat.format(((DunningHistoryTO) this.getCurrentRowObject()).getCuredDate());
}...But I still cannot manage to sort the date correctly.Please help. If possible, please paste some sample code here.Thanks a million.
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.