When there is a chart inside a tab on an accordionPanel, tabChange is not fired.
It works in 5.10
Thanks!!
Code: Select all
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pm="http://primefaces.org/mobile">
<f:view contentType="text/html" renderKitId="PRIMEFACES_MOBILE" />
<h:head>
<h:outputStylesheet library="css" name="style.css"/>
<h:outputStylesheet library="css" name="jqm-icon-pack-fa.css"/>
</h:head>
<h:body>
<h:form id="form1">
<pm:page id="first" swatch="a">
<p:growl id="msgs" showDetail="true" />
<pm:content>
<p:growl id="growlPlana" autoUpdate="true"/>
<p:accordionPanel id="accordionGrafics" activeIndex="-1" multiple="false" dynamic="false" cache="true">
<p:ajax event="tabChange" listener="#{chartView.onTabChange}" update=":form1:first:msgs" />
<p:tab title="Tab 1">
<!-- THIS TAB TRIGGERS LISTENER -->
<p:outputLabel value="tab1" />
</p:tab>
<p:tab title="Tab 2" >
<!-- THIS TAB DOES NOT TRIGGERS LISTENER -->
<p:chart id="bar1" type="bar" model="#{chartView.barModel}" style="height:300px" responsive="true"/>
</p:tab>
</p:accordionPanel>
</pm:content>
</pm:page>
</h:form>
</h:body>
</html>