2 Replies Latest reply on Mar 30, 2012 9:18 AM by raja4web

    rich:extendedDatatable preserving column positions on Rearranging




      I am using extended datatable for displaying data. I know that it provides drag-drop feature for rearranging columns. but the order of columns is effective only untill the page reloaded. Is there a way to preserve the order of columns? i have been through the forums but i couldn't find any solution for this. it might have been possible if RF4.0 final could have rich:columns tag, but it is not included in that release.


      i tried with <a4j:repeat> by enclosing rich:column tags inside it but columns are not rendered at all. JSTL  counterpart tag c:foreach works for this but i don't want to mess facelets with jstl.

      Here is the code i used for a4j:repeat. (i've over simplified the logic)


      <rich:dataTable value="#{myBean.propertiesList}" var="prop">

              <a4j:repeat var="col" value="#{myBean.columnsList}">

                <rich:column >

                     <f:facet name="header">

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


                     <h:outputText value="#{prop.referenceNumber}" />







      I'd appreciate if anyone could help me on this.