-
1. Re: rich:columns sorting works only once
ilya_shaikovsky Oct 27, 2009 8:34 AM (in response to zgantar)any messages in server console? columnsSortOrders scope?
-
2. Re: rich:columns sorting works only once
zgantar Oct 28, 2009 6:32 AM (in response to zgantar)There is no output in jboss console. One thing I forgot to mention is that the second click on column header reverts order in a table to original order before the first click did manage to do some sorting.
-
3. Re: rich:columns sorting works only once
ilya_shaikovsky Oct 28, 2009 6:35 AM (in response to zgantar)So, what about columnsSortOrders scope?
and b.t.w. what expression returned there:sortBy="#{reportComparableConverter.getComparableString(date, dsrcWrapper)}
-
4. Re: rich:columns sorting works only once
zgantar Oct 28, 2009 8:47 AM (in response to zgantar)columnsSortOrders is outjected using seam @Out and it has conversation scopeType. I've also tried without the seam @Out using geters and setters on seam @Name("yyy") component which has conversation scopeType. Expression returns as its name states comparable string so the sort method is able to sort it. I've also tried with Double and the results are the same.
I did some debuging and it seems that for first click the columns component manages to set sortOrder to eg. ASCENDING. The next click returns the sortOrder back to UNSORTED and it stays like that. And I noticed one other thing, first click does sort rows but the sort icon (triangle) does not change to indicate what sort is used and according to which column the table is sorted. The default two triangles remain. -
5. Re: rich:columns sorting works only once
nbelaevski Oct 28, 2009 11:33 AM (in response to zgantar)Hi,
Please take a look: https://jira.jboss.org/jira/browse/RF-6234. If after id assignment this won't work please try using session-scoped bean. -
6. Re: rich:columns sorting works only once
zgantar Oct 29, 2009 3:49 AM (in response to zgantar)Columns id assignment resolved the problem. I added index="i" id="column_#{i}". Thank you all for all the help.