0 Replies Latest reply on Aug 2, 2007 5:26 AM by michi_h88

    Problem with rich:dataTable in rich:tabPanel

    michi_h88

      Hello,
      I have a page that contains a rich:tabPanel. This tabpanel contains 2 pages.

      <rich:tabPanel id="pagetabpane" switchType="client">
      <rich:tab id="page1tab" label="#{msg.pageLabel} 1">
      ...
      </rich:tab>
      <rich:tab id="tabpage2" label="#{msg.pageLabel} 2">
      ...
      </rich:tab>
      </rich:tabPanel>
      


      The second page contains a rich:dataTable.
      <rich:dataTable border="1" width="100%"
       id="nozzletable32" value="#{processBowlModuleService.nozzles}" var="nozzle"
       onRowMouseOver="onOverTable(this);"
       onRowMouseOut="onOutTable(this);"
       onRowClick="onClickTable(this);checkAjaxFire('#{nozzle.name}');" rowClasses="tableRowClass">
      
       <h:column>
       <f:facet name="header">
       <h:outputText id="text4050" value="#{msg.nameLabel}"/>
       </f:facet>
       <h:outputText id="text20472" value="#{nozzle.name}"/>
       </h:column>
       <h:column>
       <f:facet name="header">
       <h:outputText id="text0293838" value="#{msg.statusLabel}"/>
       </f:facet>
       <h:outputText id="text4054" value="#{nozzle.status}"/>
       </h:column>
       <h:column>
       <f:facet name="header">
       <h:outputText id="text2349292" value="#{msg.flussmesserLabel}"/>
       </f:facet>
       <h:outputText id="text4055" value="#{nozzle.durchfluss}"/>
       </h:column>
       </rich:dataTable>
      


      The problem is that everytime the dataTable gets reRendered, I get an "duplicated component ID" - Exception (from the dataTable; the id's from the columns get duplicated (???)).
      When I change the switch type of the rich:tabPanel to ajax, I even can't open the page containing the dataTable (Duplicated Component Id).
      When the switch-type is set to client, the datatable gets rendered once, but on every reRender I get the Exception.
      Any suggestions?