If there is a getInnerClass() method on the class implementing foo, that should work. If it is simply an inner class you're trying to address, that will not work (since, it does not meet the bean spec). Is this the case? (*Chris*)
On Tue, Jun 1, 2010 at 9:37 PM, blazah <juliana.arno...@gmail.com> wrote: > > > gzzrd wrote: > > > > If I use a paginated list, I can sort information prior to getting to > > the JSP; the displaytag api doesn't do the sorting for me. By the way, > > do the "Item" objects override the equals() and hashCode() methods? > > > > My implementation of PaginatedList is similar to yours. I do sort the > information before setting the list on my PaginatedListImpl and this works > fine. The problem that I'm having is when the user clicks on the column to > sort. Displaytag adds the "sort=XXX" and "dir=asc" to the query string. I > am not comparing the "Item" class otherwise I would override the equals and > hashcode methods. I am comparing a String which is a member of the > "InnerTestClass" which resides in the "Item" class. This is where my > problem lies....I can't seem to reference the property correctly. > > What displaytag will allow for initial page rendering is this: > > <display:column property="innerClass.testId" title="Item Uid" > sortName="testId"> > ${foo.innerClass.testId} > </display:column> > > When I click on the column, however, it blows up unless I handle stripping > off the "innerClass" and set "testId" as the "sort" param in my interceptor > (hacky). What I wish worked is this: > > <display:column property="testId" title="Item Uid" sortName="testId"> > ${foo.innerClass.testId} > </display:column> > > Then I could simply take the sort param of "testId", do the comparison and > have the sorting work. > Thx, > Juliana > > -- > View this message in context: > http://old.nabble.com/Need-help-with-external-sorting-issue-tp28736891p28750071.html > Sent from the DisplayTag - General mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > displaytag-user mailing list > displaytag-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/displaytag-user >
------------------------------------------------------------------------------
_______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user