|
I think my problem is related to the following discussion.
http://www.nabble.com/Selecting-Row-on-sortable-Datatable-t1905482.html
I was using the auto sort feature of datatable for 1.13, but could not get it to work with Facelets as the datatable was unable to correctly determine the sort column. So I decided to try commandSortHeader and I am running into the same sort of issue as above.
I currently do not set the preserveDataModel Attribute.
Basically I have two backing beans and two forms
Country Search Form and Country Maintenance Form
The relevant methods on my backing beans are as follows
Country Search Backing Bean Country Maintenance Form setSortColumn editPressed() setSortAscending getDataModel
The setSortColumn Method sorts the list based on the Column Command Link pressed.
On the Country Search Form I have a Find Button which populates the List. Everything works good until I try to edit the List after a sort.
For Instance if my original List is CA – Canada US – United States
And I sort it such that my list is US – United States CA - Canada
What I am seeing is that when the edit Link is pressed on the US Row I am editing Canada. On some debugging that I have done I am seeing that the setSortColumn method on the Country Search Backing Bean is being called in the RestoreViewPhase Before the editPressed method is called. This means the list is resorted back into
CA – Canada US – United States
Before I get the Selected Row.
Has this problem been fixed? If so which version?
Is there a workaround?
Also what is the estimated schedule for the 1.14 release?
Thanks,
Tom
|

