2 Replies Latest reply on Sep 4, 2009 2:49 PM by Petr Aleksandrov

    Dynamic tabs using a4j:repeat with ArrayList

    f.sauter Newbie

      Hello,
             
      I am new to seam and my problem relates to dynmaic tabs and an ArrayList.


      The following scenario works without problems


      <a4j:repeat value="#{historyList.historyItems}" var="_historyTabItem">
         <h:outputText value="#{_historyTabItem.baseName}" />
      </a4j:repeat>
      



      But when I try to use tabs, nothing (except the rich:tabPanel line) appears.


      <rich:tabPanel>
          <a4j:repeat value="#{historyList.historyItems}" var="_historyTabItem">
                <rich:tab label="label_#{_historyTabItem.baseName}">
                     <h:outputText value="#{_historyTabItem.baseName}" />
                 </rich:tab>
          </a4j:repeat>         
      </rich:tabPanel>
      



      This results in jid40: tab panel has no enabled or rendered tabs!


      Any suggestions?


      thanks!