Hi,
I'm having trouble performing an external sort. I have a paginated list
containing a list of "Item" objects. Each "Item" object contains an object,
"InnerTestClass" as shown below. The InnerTestClass contains 2 member
variables, testId and testName. I need to be able to perform a sort on the
testId and testName attributes of the encapsulated class, InnerTestClass.
Is this possible?
public class Item {
// other member variables with getter and setters
private class InnerTestClass innerClass;
public void setInnerClass(InnerTestClass innerClass) {
this.innerClass = innerClass;
}
public InnerTestClass getInnerClass() {
return innerClass;
}
}
I can set the default sort as "testId" and the table will render because
when it first displays the sort is null. However, if I click on the column
entitled, "Item Name", then the query string has "sort=innerClass.testName"
when I need it to be "sort=testName". Is there anyway to set this
explicitly or is display tag just using the property name that is set?
<display:table name="items" uid="foo" requestURI="display.spr"
sort="external" partialList="true" size="${items.fullListSize}"
pagesize="4">
<display:column property="innerClass.testId" title="Item Uid"
sortName="testId">
${foo.innerClass.testId}
</display:column>
<display:column property="innerClass.testName" title="Item Name"
sortName="testName" sortable="true" headerClass="sortable">
${foo.innerClass.testName}
</display:column>
</display:table>
Any help would be greatly appreciated --
Thanks!
J
------------------------------------------------------------------------------
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user