3 Replies Latest reply on Jul 12, 2007 10:30 AM by yevgen_78

    datatable - update columns?

    yevgen_78

       

      <h:form id="first">
      
       <rich:dataTable id="table" var="item">
       <f:facet name="header">
       <rich:columnGroup id="headerGroup" binding="#{testBean.group1}"/>
       </f:facet>
       </rich:dataTable>
      
       <a4j:commandButton value="test" reRender="headerGroup"/>
      
       </h:form>
      


      this is my code. I want to update (rebuild) the datatable's header.
      For example the amount of columns was changed, and i need to rebuild the whole table.

      How can i do this.
      This example doesn't works :(