Ok, now i get it. First of all, make sure you assign a different "columName" for each of your command sort headers, and also you need to specify the "sortProperty" value explicitly to make it work. This could be improved actualy, would you open an issue on Jira for this?

Looks like there is a problem when using commandLinks, the sort property doesn't get determined right...a workarround for now would be to manualy set the
value for "sortPropertyName" on the <t:column>". Well, you could open an issue for this too :) and i'll take care of them.

Regards,
Catalin

Tom Cordova <[EMAIL PROTECTED]> wrote:

Thanks for your quick reply...

I've read the wiki, and I think I'm doing everything right, but if I use the
following code in my page, then only the column WITHOUT a commandSortHeader
actually sorts (securitySymbolColumn). And regardless of whether I add a
CommandSortHeader to the first column, it doesn't sort either (probably
because it's a column of commandLinks).

----------------------------------------------------


value="#{restlist.restList}"
rows="#{restlist.rowsPerPage}"
sortColumn="#{restlist.sortColumn}"
sortAscending="#{restlist.sortAscending}"
preserveSort="true" >






action=""
actionListener="#{restlist.showDetails}">


value="#{aRow.restrictedListId}"/>








/>



/>


value="#{Message.RestrictTypeDesc}" />



value="#{aRow.description}" />





value="#{Message.SecuritySymbol}" />


value="#{aRow.securitySymbol}" />







/>



/>


value="#{Message.SecurityDesc}" />



value="#{aRow.securityDesc}" />



--
View this message in context: http://www.nabble.com/Extended-Datatable-AutoSort-t1836504.html#a5013982
Sent from the MyFaces - Users forum at Nabble.com.



Yahoo! Sports Fantasy Football ’06 - Go with the leader. Start your league today!

Reply via email to