2 Replies Latest reply on Feb 2, 2011 8:57 AM by ganga_1

    rich:extendedDataTable :Column reordering issue.

    hmittal

      I am new to richfaces extended data-table.The problem is that when we reorder column then it is reordered ,but after this if we perform any action like we sort the table then this column reordering is undone and columns appear as in the initial state of the table.

      Do we have to save the table state after every action performed on the extended data-table?

      I am not able to find  this issue in any discussion thread.

      If anyone has worked on column reordering kindly help with solution.

      Thanks in advance.

       

      Sample code:

       

      <rich:extendedDataTable binding="#{backingBean.table}" id="table"
          var="tableVar" sortMode="single">

       

          <rich:column id="testCol1" sortBy="#{tableVar.testValue1}"
              label="testCol1" sortable="true">
              <f:facet name="header">
                  <h:outputText value="testCol1" />
              </f:facet>
              <h:outputText id="testValue1" value="#{tableVar.testValue1}" />
          </rich:column>

       

          <rich:column id="testCol2" sortBy="#{tableVar.testValue2}"
              label="testCol2" sortable="true">
              <f:facet name="header">
                  <h:outputText value="testCol2" />
              </f:facet>
              <h:outputText id="testValue2" value="#{tableVar.testValue2}" />
          </rich:column>

       

          <rich:column id="testCol3" sortBy="#{tableVar.testValue3}"
              label="testCol3" sortable="true">
              <f:facet name="header">
                  <h:outputText value="testCol3" />
              </f:facet>
              <h:outputText id="testValue3" value="#{tableVar.testValue3}" />
          </rich:column>

       

      </rich:extendedDataTable>