4 Replies Latest reply on May 28, 2008 9:10 AM by Zeljko Vukovic

    Dynamic tabs with Richfaces

    k k Newbie

      Hi,

      I am new to JSF and richfaces. I have a situation where I need to generate tabs dynamically based on data coming from DB. I am using richfaces comoponents but with the below code it generate no tabs for ui:repeat.

      <rich:tabPanel>
      <rich:tab id="overview" label="Program Overview" action="#{Bean.loadBrowse2Page}">
      <%@ include file="browse2_program.jsp" %>
      </rich:tab>
      <ui:repeat var="l" value="#{Bean.audiences}">
      <rich:tab name="#{l.name}" label="#{l.name}" action="#{Bean.getToolList}">
      <%@ include file="browse2_tool.jsp" %>
      </rich:tab>
      </ui:repeat>
      </rich:tabPanel>

      Need some help here. Is there any other better way of generating tabs dynamically.