-
1. rich:column sortBy can not work.please help me,thanks
wenggh007 Apr 18, 2011 9:50 AM (in response to wenggh007)someone help me?please
-
2. rich:column sortBy can not work.please help me,thanks
nbelaevski Apr 18, 2011 11:16 AM (in response to wenggh007)Hi,
You should bind 'sortOrder' attribute to the model and and command links to headers, please take a look: http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=dataTable&sample=tableSorting&skin=blueSky
-
3. rich:column sortBy can not work.please help me,thanks
geschtli Apr 18, 2011 4:38 PM (in response to nbelaevski)Hi
that example doesn't work correct.
The 'commandLink' in that, works not correct
-
4. rich:column sortBy can not work.please help me,thanks
nbelaevski Apr 18, 2011 5:00 PM (in response to geschtli)Hi,
I'm not getting what is the problem with the demo. Can you please add more details about command link that works incorrectly?
-
5. Re: rich:column sortBy can not work.please help me,thanks
geschtli Apr 19, 2011 4:08 AM (in response to nbelaevski)Hello Nick
I run the same demo on my server, but i can't see the columns sorted.
I have tried other examples, but the effect is the same.
I seems that the command,(from commandLink) to render the 'datatable' new,
has no effect.
Another problem is,that in the commandLink, the 'setPropertyActionListener target=... value=....'
does not put anything in my Bean.
( A direct call, how #{ dataManager.setValue(3) }, puts the correct value in the bean )
-
6. rich:column sortBy can not work.please help me,thanks
wenggh007 Apr 18, 2011 11:49 PM (in response to wenggh007)hi.thanks.my problem has been solved.the program need add like this:
public void sortByCapitals() {
statesOrder = SortOrder.unsorted;
timeZonesOrder = SortOrder.unsorted;
if (capitalsOrder.equals(SortOrder.ascending)) {
setCapitalsOrder(SortOrder.descending);
} else {
setCapitalsOrder(SortOrder.ascending);
}
}