10 Replies Latest reply on Oct 5, 2007 5:08 PM by Sergey Smirnov

    rich:taba and a4j:repeat don't seem to work together...

    todd Brown Newbie

      I would like an arbitrary number of tabs, yet the only one that seems to display is the default one. I know the a4j:repeat is working, because takign it out of the tab context renders me a a hand full of tables. em:table and em:column are wrappers around rich:dataTable and richColumn. Any help is greatly appreciated...


      <rich:tabPanel switchType="client">
       <rich:tab label="#{masterBean.chartTitle}">
       <a4j:outputPanel layout="block" style="margin-top: 10px">
       <em:table id="myData" propertyBean="${masterBean.somTable}" property="data"
       class="listTable2" cellspacing="1" cellpadding="1" width="100%" paginate="true" rowClasses="Odd, Even" >
       <em:column cellProperty="benchmarkName" headerClass="estimateHeader"
       title="Benchmark" />
       <em:column cellProperty="deviation" headerClass="estimateHeader"
       title="Deviation" type="java.lang.Float" minFraction="2" maxFraction="2" />
       <em:column cellProperty="spread" headerClass="estimateHeader"
       title="Spread" type="java.lang.Float" minFraction="2" maxFraction="2" />
       <em:column cellProperty="performance" headerClass="estimateHeader"
       title="Performance" type="java.lang.Float" minFraction="2" maxFraction="2" />
       <em:column cellProperty="performanceBPT" headerClass="estimateHeader"
       title="Performance BPT" type="java.lang.Float" minFraction="2" maxFraction="2" />
       </em:table>
       </a4j:outputPanel>
       </rich:tab>
       <a4j:repeat value="${masterBean.subBeans}" var="myBean">
       <rich:tab label="#{myBean.chartTitle}">
       <em:table propertyBean="${myBean.somTable}" property="data"
       class="listTable2" cellspacing="1" cellpadding="1" width="100%" paginate="true" rowClasses="Odd, Even" >
       <em:column cellProperty="benchmarkName" headerClass="estimateHeader"
       title="Benchmark" />
       <em:column cellProperty="deviation" headerClass="estimateHeader"
       title="Deviation" type="java.lang.Float" minFraction="2" maxFraction="2" />
       <em:column cellProperty="spread" headerClass="estimateHeader"
       title="Spread" type="java.lang.Float" minFraction="2" maxFraction="2" />
       <em:column cellProperty="performance" headerClass="estimateHeader"
       title="Performance" type="java.lang.Float" minFraction="2" maxFraction="2" />
       <em:column cellProperty="performanceBPT" headerClass="estimateHeader"
       title="Performance BPT" type="java.lang.Float" minFraction="2" maxFraction="2" />
       </em:table>
       </rich:tab>
       </a4j:repeat>
      
       </rich:tabPanel>