0 Replies Latest reply on May 14, 2012 12:16 PM by sage.sam

    rich:columns and rich:scrollableDataTable -- sorting rerender failure

    sage.sam

      I recently came across a need to be able to use the rich:columns tag along with rich:scrollableDataTable. I put it together, and it displays beautifully... until I try to use the sort feature.  When I click the column header to sort, the sorting works fine but all the column headers disappear!  I have tried a number of different things based on the documentation, but I still have the same problem.  I found a few issues in JIRA, specifically issue 6807, https://issues.jboss.org/browse/RF-6807 that describes this problem in great detail.

       

      My project is currently running RF 3.3.3.CR1 with Seam 2.2, which is after the build where this issue was marked as resolved. I even tried updating to 3.3.3.Final, but the problem still seems to exist. Does anyone have a hint on how to make this works, or a working example? Any help is appreciated!

       

      For reference, here is my most recent attempt:

       

      {code:xml}

      <rich:scrollableDataTable

          height="300px"

              width="700px"

          id="lookupList"

          rows="40"

          columnClasses="center"

          value="#{lookupBean.lookupList}"

          var="lookupItems"

          sortMode="single"

          rendered="#{!empty lookupBean.lookupList}"

          sortOrder="#{lookupBean.singleSortOrder}"

          selectionMode="none"

      >

              <rich:columns

                  value="#{lookupBean.getKeys()}"

                  var="_column"

                  index="_colIndex"

                  sortExpression="#{lookupItems.get(_column)}"

                  id="lookupCol#{_colIndex}"

              >

                  <f:facet name="header" id="header#{_colIndex}">

                      <h:outputText value="#{_column}" />

                  </f:facet>

       

                  <h:outputText value="#{lookupItems.get(_column)}" />

              </rich:columns>                               

       

      </rich:scrollableDataTable>

      {code}