I have problem with Accordion Panel. I have Accordion similar to this:
<p:accordionPanel>
<p:tab title="tabTitle">
<f:facet name="title">
<!-- problematic button -->
<p:commandButton value="button"/>
</f:facet>
<h:PanelGrid>
<p>Accordion content</p>
</h:panelGrdi>
</p:tab>
</p:accordionPanel>
The problem is - when I click the button, whole Accordion Tab will collapse.
My question is: How to prevent Accordion from collapsing on button click? At the same time I would like Accordion to collapse when I click on header but outside the button.
I'm using PrimeFaces 5.3 and JSF 2.2.11