tabs not rendered properly.
deeps83 Dec 28, 2010 3:36 AMHi,
I have a tabpanel in my xhtml page as given below :
<ui:define name="centerdata">
<a:outputPanel id="pVTabs">
<div
style="height: 210px; padding-left: 20px; padding-right: 20px; background-color: white;">
<a:region id="apvregion">
<rich:tabPanel id="tabs" switchType="ajax" height="200px"
selectedTab="#{plantview.selectedTab}" styleClass="tab-subheader"
inactiveTabClass="tab-subheader-inactive" activeTabClass="tab-subheader-active">
<a:support event="ontabchange" action="#{plantview.clearView()}"
reRender="chartGrid,qualitytable,push" limitToList="true"></a:support>
<rich:tab label="Metrics" id="qdTab" rendered="true"
switchType="ajax" name="qdTab">
<rich:panel style="padding-top: 10px;padding-bottom:10px"
...................................
...................
</rich:panel>
</rich:tab>
<rich:tab label="Quality Data" id="metTab" switchType="ajax"
rendered="true" name="metTab">
......................
...................
</rich:tab>
<rich:tab label="Dependency Data"
rendered="#{plantview.renderDepData}" id="ddTab" switchType="ajax" name="ddTab">
................................
....................
</rich:tab>
<rich:tab label="Current Monitors"
rendered="#{plantview.renderMonitorTab}" id="mdTab"
switchType="ajax" name="mdTab">
.................
................
</rich:tab>
<rich:tab label="Current Reports" style="border:0" id="rdtab"
switchType="ajax" rendered="true" name="rdtab">
...................
......................
</rich:tab>
<rich:tab label="Stations"
rendered="#{plantview.renderStationsTab}" id="stationstab"
switchType="ajax" name="stationstab">
..............
................
</rich:tab>
</rich:tabPanel>
<a:status onstart="Richfaces.showModalPanel('astartpanel')"
onstop="Richfaces.hideModalPanel('astartpanel')"
for="apvregion">
</a:status>
</a:region></div>
</a:outputPanel>
</ui:define>
But if I keep on switching the tabs , at some point of time some tabs will not be rendered.Sometimes when this happens I will get an info in the console as :
inclId:tabs: tab panel [@selectedTab=ddTab] has no enabled or rendered tab with such name. Tab: rdtab will be used instead!
But I have seen that the value of the rendered attribute is true only for all the tabs which are not rendered.
What can be the reason for this.If anyone have any idea please share.
I am using :
Richfaces 3.3.3Final.
JSF 1.2
Seam 2.2.0 GA
JBoss 4.2.3 GA.
Facelets 1.1.15
Thanks,
Deeps.