6 Replies Latest reply on Jun 9, 2010 7:15 AM by Johannes Freudendahl

    ExtendedDataTable: columns displayed in wrong order

    Johannes Freudendahl Newbie

      I'm still working on the view containing an extended data table, and I see another strange error there. My table has grown to contain a dynamic number of columns plus one static column. Simplified example:


      {code}<rich:extendedDataTable id="myTable" value="#{myBean.dataModel}" var="nextRow">
        <!-- dynamic columns -->
        <rich:columns value="#{myBean.columns}" var="nextColumn" index="fieldNumber" id="value#{fieldNumber}" width="300px">
          <f:facet name="header"><h:outputText value="#{nextColumn.name}"/></f:facet>
          <h:outputText value="#{nextRow.values[nextColumn.name]}" />
        <!-- static column -->
        <rich:column id="mdTest" sortable="false" width="150px">
          <f:facet name="header"><h:outputText value="Test"/></f:facet>
          <h:outputText value="123" />


      When the table is first loaded, the static column in displayd first and the dynamic ones follow. As soon as the table is rerendered (via a command link with rerender attribute), the static column jumps to the end of the table where it belongs. Any idea what could be the cause and how to solve this? rich:columns and rich:column are supposed to be useable together, right?!