This content has been marked as final. 
    
Show                 3 replies
    
- 
        1. Re: ScrollableDataTable built in Sorting does not work.lemonchik Dec 15, 2008 8:11 AM (in response to lemonchik)I found the problem out. The Sorting is working if i have the plain objects only. I hit on problems by using nested objects. I suppose the column ID cannot be resolved correctly. 
 For example:<rich:scrollableDataTable rowKeyVar="rkv" value="#{customerHandler.personList}" var="customer" sortMode="single"> <rich:column id="lastName" width="120px"> <f:facet name="header"><h:outputText value="Lastname" /></f:facet> <h:outputText value="#{customer.lastName}" /> </rich:column> <rich:column id="street" width="120px"> <f:facet name="header"><h:outputText value="Street" /></f:facet> <h:outputText value="#{customer.address.street}" /> </rich:column> </rich:scrollableDataTable>
 The first column will be sorted, but the second will not.
 Has anybody any ideas ???
- 
        2. Re: ScrollableDataTable built in Sorting does not work.konstantin.mishin Dec 15, 2008 9:30 AM (in response to lemonchik)You should use sortExpression attribute for column inside scrollableDataTable instead of sortBy. 
 Like:
 <rich:column id="street" width="120px" sortExpression ="#{customer.address.street}">
 <f:facet name="header"><h:outputText value="Street" /></f:facet>
 <h:outputText value="#{customer.address.street}" />
 </rich:column>
- 
        3. Re: ScrollableDataTable built in Sorting does not work.lemonchik Dec 15, 2008 9:50 AM (in response to lemonchik)Yes, it's working !!! Thank you so much. 
 
    