I have a accordionPanel
created dynamically and I want to get the identifier of the Tab that activates the user, for this I am making use of the only event ajax that can be applied to the accordions ( tabChange
), however this is never invoked.
Here is my xhtml file
<p:accordionPanel id="equipos" dynamic="true" activeIndex="null"
value="#{equipoBean.equipoDecoradoList}" var="equipoDecorado">
<p:ajax event="tabChange" listener="#{equipoBean.onChange}" />
<p:tab title="#{equipoDecorado.equipo.nombre}" id="tab">
</p:tab>
</p:accordionPanel>
and this is the method in the Backing Bean
public void onChange(TabChangeEvent event){
System.out.println("omchnage");
}
But every time I select a Tab, the method is not called,
I would be very grateful if you can tell me what is wrong or what I need.