0 Replies Latest reply on Apr 14, 2008 3:01 PM by Ian Kerman

    Rerendering a repeated rich:scrollabledatatable

    Ian Kerman Newbie

      I currently have a repeater setup so that it shows multiple data tables based on a list of the objects that populate the data tables. My code is:

      <a4j:repeat var="dataTemplateSet" value="#{loginManager.dataTemplateSet}" id="repeatme">
       <div class="container">
       <rich:simpleTogglePanel switchType="client" label="#{dataTemplateSet.typeName}" width="700px" id="repeatme2">
       <rich:scrollableDataTable value="#{dataTemplateSet.wellList}" var="wells"
       frozenColCount="0"
       rows = "0"
       width = "680px"
       height = "400px"
       sortMode = "single"
       id="mytable">
       <rich:column rendered="true" id="plateid">
       <f:facet name="header">
       <h:outputText value="Well ID"/>
       </f:facet>
       <h:outputText value="#{wells.plateid}"/>
       </rich:column>
       <rich:column id="field00" rendered="#{dataTemplateSet.field00Visible}" >
       <f:facet name="header">
       <h:outputText value="#{dataTemplateSet.field00.fieldName}"/>
       </f:facet>
       <h:outputText value="#{wells.field00}"/>
       </rich:column>
       .
       .
       .
       </rich:scrollableDataTable>
       </rich:simpleTogglePanel>
       </div>
      </a4j:repeat>
      


      I have a reRender set on a rich:Tree and have tried rerendering multiple combinations of all of the ids, but the data tables do not rerender. I had a simple outputText that showed the plate id that was selected (via the rich:tree) and that would reRender and change as expected. Also, if the entire page is refreshed in the browser, the selected data tables show up.

      The purpose of this is to show a mixed dataset with different column headers. Any help would be greatly appreciated. Thanks!