Hallo ich benutze primefaces Version 3.2 Das Ui-Layout, das ich verwende, ist Tabview, darin habe ich Akkordeon-Panel, und in jedem Tab des Akkordeons, ich habe zwei Formen.Primefaces, activeindex Listener nicht in mehreren Tabs aufrufen
Genau wie TabView> tab> accordionpanel> tab> form1 und
TabView> tab> accordionpanel> tab> form2 und so weiter ...
Nun, das Problem ist, dass die aktive Index Aktion wird im obigen Szenario nicht aufgerufen. Allerdings, wenn ich eines der From aus dem Akkordeon Panel Tab entferne, wird es aufgerufen und funktioniert gut.
Das ist mein xhtml TabView Code
<p:tabView id="tabView" activeIndex="#{profileInfoManagedBean.myCurrentTab}" >
<p:ajax event="tabChange" listener="#{profileInfoManagedBean.tabIsChanged}" />
<p:tab id="locationInfoTab" title="Location Info">
<p:accordionPanel id="aPanel">
<p:tab id="tab1" title="Country">
<h:form id="form1">
<p:growl id="growl" life="5000" />
<p:messages id="messages" />
<h:panelGrid columns="3" cellpadding="5" cellspacing="5">
<p:column>
<h:outputLabel for="country" value="Country: "></h:outputLabel>
</p:column>
<p:column>
<p:inputText id="country" value="#{profileInfoManagedBean.country.country}" required="true" label="City">
<f:validateLength minimum="5" maximum="20" />
<p:ajax event="blur" update="msg1"></p:ajax>
</p:inputText>
</p:column>
<p:column>
<p:message id="msg1" for="country" display="icon"></p:message>
</p:column>
</h:panelGrid>
<p:commandButton type="submit" action="#{profileInfoManagedBean.addCountry}" value="Save" ajax="true" ></p:commandButton>
</h:form>