However, when I sort on the Person Name column, the order is not in the order of the actual value, but instead it gets ordered
by the <a href=".."> tag. So, if I have a person's name that is William but his id is 1 and Smith id is 2 then William will show up
before Smith.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been using displaytag for a while and have been using the property which must default to the sorting field if no sortProperty is given. The reason was asking I am acutally using a custom jsp tag, to combine fields and the property does not allow this. From now on sortProperty it is...
thanks
Whiskogs
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From what I read, it seems similar to what I encountered last year. Here's the thread in question: https://sourceforge.net/forum/forum.php?thread_id=1890052&forum_id=249318
The solution was to use the sortProperty property, but you can get a more detailed explanation if you follow the above link.
kr,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is what I am running into...
<h3>Code</h3>:
<display:table>
<display:column title="Person Name" sortable="true">
<html:link action="/myaction?id=${uid.id}&nav=open" >${uid.name}</html:link>
</display:column
</display:table>
Now the above code generates exactly what I want.
<h3>Output</h3>:
<table>
<tr>
<th><a href="/myaction.do?d-1345720-p=1&d-1345720-s=1&d-1345720-o=2">Person Name</th>
</tr>
<tr>
<td><a href="/myaction.do?id=11&nav=open">John Doe</a><td>
</tr>
</table>
<h3>Problem</h3>:
However, when I sort on the Person Name column, the order is not in the order of the actual value, but instead it gets ordered
by the <a href=".."> tag. So, if I have a person's name that is William but his id is 1 and Smith id is 2 then William will show up
before Smith.
I have been using displaytag for a while and have been using the property which must default to the sorting field if no sortProperty is given. The reason was asking I am acutally using a custom jsp tag, to combine fields and the property does not allow this. From now on sortProperty it is...
thanks
Whiskogs
Howdy,
From what I read, it seems similar to what I encountered last year. Here's the thread in question: https://sourceforge.net/forum/forum.php?thread_id=1890052&forum_id=249318
The solution was to use the sortProperty property, but you can get a more detailed explanation if you follow the above link.
kr,
*sortProperty attribute, of course.