3 Replies Latest reply on Aug 3, 2015 10:31 AM by Michal Petrov

    rich:column sorting not working with sortBy attribute

    Vipinlal T Newbie

      Hello All,

       

      rich:column sorting not working with sortBy attribute

      Am working in richfaces 4.5.2 java 1.7

      Am referred one sample from richfaces showcase with Built in Sorting

       

      But it not working, here am putting my code

       

      <rich:dataTable value="#{accountCreation.list}" var="listVal" id="table" rows="5" style="width : 100%">

                  <rich:column id="col1" sortBy="#{listVal.userName}" >

                          <f:facet name="header">Username</f:facet>

                          <h:outputText value="#{listVal.userName}"/>

                  </rich:column>

                  <rich:column id="col2" sortBy="#{listVal.firstName}">

                          <f:facet name="header">First Name</f:facet>

                          <h:outputText value="#{listVal.firstName}"/>

                  </rich:column>

                  <rich:column id="col3" sortBy="#{listVal.lastName}">

                          <f:facet name="header">Last Name</f:facet>

                          <h:outputText value="#{listVal.lastName}"/>

                  </rich:column>

                  <rich:column id="col4" sortBy="#{listVal.email}">

                          <f:facet name="header">Email</f:facet>

                          <h:outputText value="#{listVal.email}"/>

                  </rich:column>

                  <rich:column id="col5" sortBy="#{listVal.accountType}">

                          <f:facet name="header">Account Type</f:facet>

                          <h:outputText value="#{listVal.accountType}"/>

                  </rich:column>

                  <rich:column>

                          <f:facet name="header">Organization</f:facet>

                          <h:outputText value="#{listVal.organization}"/>

                  </rich:column>

              </rich:dataTable>

       

       

       

      Can some one point me what wrong in above code

       

      Thank you.