2 Replies Latest reply on Sep 15, 2011 5:37 AM by duc tun vu

    rich:column sorting does not work

    duc tun vu Newbie

      Hi folks,

       

      im stuck with this very simple (but strange) problem with sorting function of rich:column. I have a rich:dataTable rendering a dataset. I can see that the sorting AJAX request is sent to server when clicking on the header cells, but nothing changes after that, the table does not get rerendered. And following is the code snippet:

       

                  <h:form>

                  <rich:dataTable id="dailyVolumeTable"

                          value="#{salesReportController.dailySalesVolumes}" var="volume"

                          headerClass="global_WrappedHeader"

                          footerClass="global_TableFooterDecoratorCell"

                          sortMode="single"

                          >

       

                    <rich:column sortBy="#{volume.calendarDate}">

                      <f:facet name="header">

                        <h:outputText value="#{messages['bakery.admintool.ui.common.date']}"/>

                      </f:facet>

       

                      <h:outputText value="#{timestampService.formateDatePeriode(volume.calendarDate, salesReportController.periodeType)}"/>

                    </rich:column>

                    <rich:column id="totalOrders" sortBy="#{volume.totalOrders}">

                      <f:facet name="header">

                         <h:outputText value="#{messages['bakery.admintool.reporting.salesVolumeAnalyse.totalOrders']}"/>

                      </f:facet>

       

                      <h:outputText value="#{volume.totalOrders}"/>

                    </rich:column>

                    <rich:column sortBy="#{volume.totalCancellations}">

                      <f:facet name="header">

                         <h:outputText value="#{messages['bakery.admintool.reporting.salesVolumeAnalyse.totalCancellations']}"/>

                      </f:facet>

       

                      <h:outputText value="#{volume.totalCancellations}"/>

                    </rich:column>

                    <rich:column sortBy="#{volume.totalReturns}">

                      <f:facet name="header">

                         <h:outputText value="#{messages['bakery.admintool.reporting.salesVolumeAnalyse.totalReturns']}"/>

                      </f:facet>

       

                      <h:outputText value="#{volume.totalReturns}"/>

                    </rich:column>

                    <rich:column sortBy="#{volume.sumSalesGross}">

                      <f:facet name="header">

                         <h:outputText value="#{messages['bakery.admintool.reporting.salesVolumeAnalyse.sumSalesGross']}"/>

                      </f:facet>

       

                      <h:outputText value="#{volume.sumSalesGross}"/>

                    </rich:column>

                    <rich:column sortBy="#{volume.sumCancellationsGross}">

                      <f:facet name="header">

                         <h:outputText value="#{messages['bakery.admintool.reporting.salesVolumeAnalyse.sumCancellationsGross']}"/>

                      </f:facet>

       

                      <h:outputText value="#{volume.sumCancellationsGross}"/>

                    </rich:column>

                    <rich:column sortBy="#{volume.sumReturnsGross}">

                      <f:facet name="header">

                         <h:outputText value="#{messages['bakery.admintool.reporting.salesVolumeAnalyse.sumReturnsGross']}"/>

                      </f:facet>

       

                      <h:outputText value="#{volume.sumReturnsGross}"/>

                    </rich:column>

                    <rich:column sortBy="#{volume.sumAdjustedSalesGross}">

                      <f:facet name="header">

                         <h:outputText value="#{messages['bakery.admintool.reporting.salesVolumeAnalyse.sumAdjustedSalesGross']}"/>

                      </f:facet>

       

                      <h:outputText value="#{volume.sumAdjustedSalesGross}"/>

                    </rich:column>

       

                    <f:facet name="footer">

                      <div class="global_TableFooterDecorator">&#160;</div>

                    </f:facet>

                  </rich:dataTable>

                  </h:form>

       

      All the fields of the iterative object "volume" are of type Long. Pls could someone tell me, what am i missing here?

       

      My Stack:

      - Seam 2.2.0GA on JBoss 5

      - Richfaces 3.3.3.Final

      - JSF 1.2

       

      Thank you very much!