2 Replies Latest reply on Sep 15, 2011 5:37 AM by tunggad

    rich:column sorting does not work

    tunggad

      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!

        • 1. Re: rich:column sorting does not work
          mp911de

          Hi,

          can you see, that some response is sent from the server or does the server produce a stack-trace? Or can you identify a javascript error in your browser?

           

          Best regards,

          Mark

          • 2. Re: rich:column sorting does not work
            tunggad

            Hi Mark,

             

            sry for my late reply. I can see in firebug that the serverside creates response and send it back. The content of the response is NOT exception stack-trace, no exception is thrown on serverside console. And i cant see any JS error after the AJAX requests are complete. Hmmm very strange!

             

            Maybe you need more infos to help me solve this problem?

             

            Thank you!