the Tabchange event of the accordion primefaces panel does not work

0

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 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.

    
asked by luis gonzalez 24.05.2016 в 14:41
source

1 answer

1

Luiggi Mendoza was right, with version 5.3 of primefaces it works without any problem, apparently version 5.0 presents problems with this functionality.

    
answered by 24.05.2016 в 21:44