2 Replies Latest reply on Jul 21, 2010 8:09 AM by Ilya Shaikovsky

    rich:extendedDataTable :Column reordering problem.

    Himanshu Mittal Newbie

      When we reorder a column and then sort any column in the the table it reverts back to its original column state.

      We are using binding attribute to populate data in the datatable.I am not able to find this issue in any discussion.

        • 1. Re: rich:extendedDataTable :Column reordering problem.
          Himanshu Mittal Newbie

          this is the 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>