When update an accordion it open all tabs

I have a big problem with Primefaces accordion.
I have an outputPanel with an header and an accordion with 2 tabs.
When I change one field in a tab, I need to update all, but after the update all tabs are open. If I close the first tab and change a field in the second tab, it open the first tab.

This is an easy example:

<p:outputPanel id="content">
    <p:outputPanel id="header" />

    <p:accordionPanel multiple="true">
        <p:tab title="firstTab">
            <p:panel>
                <p:inputText id="firstInput" value="firstInput">
                    <p:ajax event="change" update="content" />
                </p:inputText>
            </p:panel>
        </p:tab>
        <p:tab title="secondTab">
            <p:panel>
                <p:inputText id="secondInput" value="secondInput">
                    <p:ajax event="change" update="content" />
                </p:inputText>
            </p:panel>
        </p:tab>
    </p:accordionPanel>     

</p:outputPanel>

How can i resolve it? Any suggestion?

For more info please click herehttps://stackoverflow.com/q/50375668

Have a question or need a custom quote?
info@smartinfocare.com