This content has been marked as final. 
    
Show                 3 replies
    
- 
        1. Re: datatable sort columnbiggerschwarz Oct 23, 2007 1:28 PM (in response to mblondel)Here is an example of how I got it working: <rich:column sortExpression="#{grant.grantContractTypeName}"> <f:facet name="header"> <h:outputText styleClass="required" escape="false" value="Grant/ <br/> Contract" /> </f:facet> <h:outputText value="#{grant.grantContractTypeName}" /> </rich:column>
 grant is a managed bean.
- 
        2. Re: datatable sort columnmblondel Oct 24, 2007 3:16 AM (in response to mblondel)For me, it doesn't work. The column "Name" is not sortable. Nothing appends when I click on the header. Here is my simple example. 
 Thanks<h:form> <rich:dataTable width="500" id="productList" rows="10" columnClasses="col" value="#{exaProductBean.products}" var="product"> <rich:column id="Name" sortExpression="#{product.productName}"> <f:facet name="header"> <h:outputText styleClass="headerText" value="Name" /> </f:facet> <h:outputText value="#{product.productName}" /> </rich:column> <rich:column id="Vendor"> <f:facet name="header"> <h:outputText styleClass="headerText" value="Vendor" /> </f:facet> <h:outputText value="#{product.vendor}" /> </rich:column> </rich:dataTable> </h:form>
- 
        3. Re: datatable sort columnilya_shaikovsky Oct 26, 2007 7:38 AM (in response to mblondel)such column sorting currently works only for rich:scrollableTable. Such support for simple table planned to 3.2.0 version 
 
     
    