Hi again Chris,
Actually I already solved this problem. Look:
//...
public class VotingBean implements Serializable {
private String attrStartDate;
public String getAttrStartDate() { return this.attrStartDate; }
public void setAttrStartDate(String attrStartDate) {
this.attrStartDate = attrStartDate; }
//until that code above nothing new...
public Date getAttrStartDateWrapped() {
//conversion method between String to java.util.Date...
}
}
When referring the field inside the tag I use:
<display:column title="Start Date" class="content-table"
media="html csv xml excel pdf rtf" style="width=33%" sortable="true"
sortProperty="attrStartDateWrapped">${vote.attrStartDate}</display:column>
Now it works fine.
Best regards,
José Renato.
Chris Widhelm escreveu:
> That is because attrStartDate is actually of type VotingBean and not
> actually Date. Is there a date accessor(get) somewhere inside
> VotingBean? Does VotingBean have a toString() on it that is printing
> out some date?
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user