Creating static and dynamic tabs on a single page in primefaces 5

UI Components for JSF
Post Reply
naveenkoch
Posts: 2
Joined: 24 Jan 2017, 08:00

24 May 2017, 09:49

I have a requirement, where I have to create tabs. First two tabs are static tabs, next tabs are dynamic based on the records in database table.

When I try to create, only first tabs are coming, remaining tabs are not coming.

Here is my work

Code: Select all

 <p:tabView id="vzTabView" styleClass="vzTabView" dynamic="true" >
        <p:tab id="vzPsnReport" title="${msgs.ckd_title}">      
                // first tab content
        </p:tab>
        <p:tab id="provisioninReportByMaterial" title="${msgs.pc_qsys_title_material}">
              // second tab content
        </p:tab>
        <p:tabView id="supersetTabs"        value="#{pcSuperSetReportBean.plantSuperSets}" var="tab">
           <p:tab id="provisioninReportBySupplier" title="#{tab.label}">
                //dynamic tab content
          </p:tab>
     </p:tabView>
 </p:tabView>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests