Maybe bug in TabView

UI Components for JSF
Post Reply
bueyuekt
Posts: 24
Joined: 26 May 2010, 11:51

25 Mar 2011, 10:57

Actually i am using p:tabView. I found a strange behaviour. I can not position to p:tab components behind a unvisible p:tab.

Code: Select all

<p:tabView id="idTabView" widgetVar="tabView"
     dynamic="true" cache="false" collapsible="false">
    <c:forEach items="#{navigationHolderMBean.tabNodes}" var="theTab">
        <p:tab rendered="#{theTab.visible}" title="#{theTab.title}">
          content...
        </p:tab>
    </c:forEach>
</p:tabView>
So i have 5 tabNodes and tabNode 3 is not visible (rendered=false) and i use activeIndex=4 on tabView,
primefaces will not show the content of tab 4. It shows nothing an highlights first tab.

Is this a bug?? Or am i doing something wrong?
Primeface 3.0.M1
JSF 2.0.4
Tomcat 6.0.18

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider], Google [Bot] and 18 guests