0 Replies Latest reply on Feb 24, 2011 9:39 AM by Maxim Kuzmik

    rich:extendedDataTable + dynamic columns

    Maxim Kuzmik Newbie

      Hello. I need to render table with dynamic columns in it. But i cant' do this. What i do wrong?

       

       

         
      <rich:extendedDataTable id="dataTable"
            rendered="#{not empty uiManager.treeManager.currentSelection}"
            noDataLabel="Данные отсутствуют" var="essence"
            selectionMode="multipleKeyboardFree" sortMode="single"
            value="#{uiManager.tableTreeManager.data}" height="500px">
            <f:facet name="header">
             <h:outputText value="#{uiManager.tableTreeManager.tableTitle}" />
            </f:facet>
            <c:forEach items="#{uiManager.tableTreeManager.attributesForDisplay}" var="attribute">
             <rich:column label="#{attribute.name}">
              <f:facet name="header">
               <h:outputText value="#{attribute.name}" />
              </f:facet>
             </rich:column>
            </c:forEach>
           </rich:extendedDataTable>